]> git.lizzy.rs Git - rust.git/blob - tests/ui/unsafe/unsafe-trait-impl.stderr
Rollup merge of #106323 - starkat99:stabilize-f16c_target_feature, r=petrochenkov
[rust.git] / tests / 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 signature `unsafe fn(&u32) -> _`
13               found signature `fn(&u32) -> _`
14
15 error: aborting due to previous error
16
17 For more information about this error, try `rustc --explain E0053`.