fork/rust
git clone https://git.julia.blue/fork/rust
4560ea788cb
1.39.0
1error[E0308]: mismatched types 2 --> $DIR/method-self-arg-1.rs:11:14 3 | 4LL | Foo::bar(x); 5 | ^ 6 | | 7 | expected &Foo, found struct `Foo` 8 | help: consider borrowing here: `&x` 9 | 10 = note: expected type `&Foo` 11 found type `Foo` 12 13error[E0308]: mismatched types 14 --> $DIR/method-self-arg-1.rs:15:14 15 | 16LL | Foo::bar(&42); 17 | ^^^ expected struct `Foo`, found integer 18 | 19 = note: expected type `&Foo` 20 found type `&{integer}` 21 22error: aborting due to 2 previous errors 23 24For more information about this error, try `rustc --explain E0308`.