fork/rust
git clone https://git.julia.blue/fork/rust
8d69840ab92
1.43.1
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 10error[E0308]: mismatched types 11 --> $DIR/method-self-arg-1.rs:13:14 12 | 13LL | Foo::bar(&42); 14 | ^^^ expected struct `Foo`, found integer 15 | 16 = note: expected reference `&Foo` 17 found reference `&{integer}` 18 19error: aborting due to 2 previous errors 20 21For more information about this error, try `rustc --explain E0308`.