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