File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
tests/ui/consts/miri_unleashed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,6 @@ const fn call_rust_fn(my_fn: extern "Rust" fn()) {
1010
1111static 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
1515fn main ( ) { }
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ error[E0080]: could not evaluate static initializer
22 --> $DIR/abi-mismatch.rs:11:18
33 |
44LL | 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 |
77note: inside `call_rust_fn`
88 --> $DIR/abi-mismatch.rs:7:5
You can’t perform that action at this time.
0 commit comments