Skip to content

Commit e74fe7a

Browse files
committed
Bless more test
1 parent 650c8a2 commit e74fe7a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

tests/ui/consts/miri_unleashed/abi-mismatch.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@ const fn call_rust_fn(my_fn: extern "Rust" fn()) {
1010

1111
static VAL: () = call_rust_fn(unsafe { std::mem::transmute(c_fn as extern "C" fn()) });
1212
//~^ ERROR could not evaluate static initializer
13-
//~| NOTE calling a function with calling convention C using calling convention Rust
13+
//~| NOTE calling a function with calling convention "C" using calling convention "Rust"
1414

1515
fn main() {}

tests/ui/consts/miri_unleashed/abi-mismatch.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ error[E0080]: could not evaluate static initializer
22
--> $DIR/abi-mismatch.rs:11:18
33
|
44
LL | static VAL: () = call_rust_fn(unsafe { std::mem::transmute(c_fn as extern "C" fn()) });
5-
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ calling a function with calling convention C using calling convention Rust
5+
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ calling a function with calling convention "C" using calling convention "Rust"
66
|
77
note: inside `call_rust_fn`
88
--> $DIR/abi-mismatch.rs:7:5

0 commit comments

Comments
 (0)