rust/src/test/ui/proc-macro/signature.stderr

16 lines
501 B
Plaintext
Raw Normal View History

2017-12-10 21:00:10 +00:00
error[E0308]: mismatched types
--> $DIR/signature.rs:20:1
2017-12-10 21:00:10 +00:00
|
2018-02-23 00:42:32 +00:00
LL | / pub unsafe extern fn foo(a: i32, b: u32) -> u32 {
LL | | //~^ ERROR: mismatched types
LL | | loop {}
LL | | }
2017-12-10 21:00:10 +00: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 14:59:40 +00:00
For more information about this error, try `rustc --explain E0308`.