1 error[E0053]: method `len` has an incompatible type for trait
2 --> $DIR/unsafe-trait-impl.rs:8:5
4 LL | fn len(&self) -> u32 { *self }
5 | ^^^^^^^^^^^^^^^^^^^^ expected unsafe fn, found normal fn
8 --> $DIR/unsafe-trait-impl.rs:4:5
10 LL | unsafe fn len(&self) -> u32;
11 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
12 = note: expected signature `unsafe fn(&u32) -> _`
13 found signature `fn(&u32) -> _`
15 error: aborting due to previous error
17 For more information about this error, try `rustc --explain E0053`.