1 error[E0308]: mismatched types
2 --> $DIR/method-self-arg-1.rs:11:14
7 | expected `&Foo`, found struct `Foo`
8 | help: consider borrowing here: `&x`
10 error[E0308]: mismatched types
11 --> $DIR/method-self-arg-1.rs:13:14
14 | ^^^ expected struct `Foo`, found integer
16 = note: expected reference `&Foo`
17 found reference `&{integer}`
19 error: aborting due to 2 previous errors
21 For more information about this error, try `rustc --explain E0308`.