2017-12-10 15:00:10 -06:00
|
|
|
error[E0308]: mismatched types
|
2018-11-24 07:34:13 -06:00
|
|
|
--> $DIR/signature.rs:20:1
|
2017-12-10 15:00:10 -06:00
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | / pub unsafe extern fn foo(a: i32, b: u32) -> u32 {
|
|
|
|
LL | | //~^ ERROR: mismatched types
|
|
|
|
LL | | loop {}
|
|
|
|
LL | | }
|
2017-12-10 15:00:10 -06:00
|
|
|
| |_^ expected normal fn, found unsafe fn
|
|
|
|
|
|
|
|
|
= note: expected type `fn(proc_macro::TokenStream) -> proc_macro::TokenStream`
|
|
|
|
found type `unsafe extern "C" fn(i32, u32) -> u32 {foo}`
|
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|
2018-03-03 08:59:40 -06:00
|
|
|
For more information about this error, try `rustc --explain E0308`.
|