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