]> git.lizzy.rs Git - rust.git/blob - src/test/ui/unsafe/unsafe-trait-impl.stderr
Auto merge of #103894 - mati865:gnullvm-libunwind-changes, r=thomcc
[rust.git] / src / test / ui / unsafe / unsafe-trait-impl.stderr
1 error[E0053]: method `len` has an incompatible type for trait
2   --> $DIR/unsafe-trait-impl.rs:8:5
3    |
4 LL |     fn len(&self) -> u32 { *self }
5    |     ^^^^^^^^^^^^^^^^^^^^ expected unsafe fn, found normal fn
6    |
7 note: type in trait
8   --> $DIR/unsafe-trait-impl.rs:4:5
9    |
10 LL |     unsafe fn len(&self) -> u32;
11    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
12    = note: expected fn pointer `unsafe fn(&u32) -> _`
13               found fn pointer `fn(&u32) -> _`
14
15 error: aborting due to previous error
16
17 For more information about this error, try `rustc --explain E0053`.