fork/rust

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

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

1.44.0
388 B12 linesraw
1error[E0185]: method `bar` has a `&self` declaration in the impl, but not in the trait
2  --> $DIR/staticness-mismatch.rs:7:5
3   |
4LL |     fn bar();
5   |     --------- trait method declared without `&self`
6...
7LL |     fn bar(&self) {}
8   |     ^^^^^^^^^^^^^ `&self` used in impl
9
10error: aborting due to previous error
11
12For more information about this error, try `rustc --explain E0185`.