]>
Commit | Line | Data |
---|---|---|
ff7c6d11 | 1 | error[E0308]: mismatched types |
0731742a | 2 | --> $DIR/signature.rs:10:1 |
ff7c6d11 | 3 | | |
0531ce1d | 4 | LL | / pub unsafe extern fn foo(a: i32, b: u32) -> u32 { |
532ac7d7 | 5 | LL | | |
0531ce1d XL |
6 | LL | | loop {} |
7 | LL | | } | |
ff7c6d11 XL |
8 | | |_^ expected normal fn, found unsafe fn |
9 | | | |
60c5eb7d XL |
10 | = note: expected fn pointer `fn(proc_macro::TokenStream) -> proc_macro::TokenStream` |
11 | found fn item `unsafe extern "C" fn(i32, u32) -> u32 {foo}` | |
ff7c6d11 XL |
12 | |
13 | error: aborting due to previous error | |
14 | ||
0531ce1d | 15 | For more information about this error, try `rustc --explain E0308`. |