]> git.lizzy.rs Git - rust.git/blob - src/test/ui/unsafe/unsafe-trait-impl.stderr
Auto merge of #84589 - In-line:zircon-thread-name, r=JohnTitor
[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 |     unsafe fn len(&self) -> u32;
5    |     ---------------------------- type in trait
6 ...
7 LL |     fn len(&self) -> u32 { *self }
8    |     ^^^^^^^^^^^^^^^^^^^^ expected unsafe fn, found normal fn
9    |
10    = note: expected fn pointer `unsafe fn(&u32) -> _`
11               found fn pointer `fn(&u32) -> _`
12
13 error: aborting due to previous error
14
15 For more information about this error, try `rustc --explain E0053`.