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`
9 | arguments to this function are incorrect
11 note: associated function defined here
12 --> $DIR/method-self-arg-1.rs:6:8
17 error[E0308]: mismatched types
18 --> $DIR/method-self-arg-1.rs:13:14
21 | -------- ^^^ expected struct `Foo`, found integer
23 | arguments to this function are incorrect
25 = note: expected reference `&Foo`
26 found reference `&{integer}`
27 note: associated function defined here
28 --> $DIR/method-self-arg-1.rs:6:8
33 error: aborting due to 2 previous errors
35 For more information about this error, try `rustc --explain E0308`.