fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #72883 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum49cae55760d

1.44.0
517 B15 linesraw
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 fn pointer `unsafe fn(&u32) -> _`
11              found fn pointer `fn(&u32) -> _`
12
13error: aborting due to previous error
14
15For more information about this error, try `rustc --explain E0053`.