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 = note: expected type `&Foo`
13 error[E0308]: mismatched types
14 --> $DIR/method-self-arg-1.rs:15:14
17 | ^^^ expected struct `Foo`, found integer
19 = note: expected type `&Foo`
20 found type `&{integer}`
22 error: aborting due to 2 previous errors
24 For more information about this error, try `rustc --explain E0308`.