]> git.proxmox.com Git - rustc.git/blob - src/test/ui/methods/method-self-arg-1.stderr
New upstream version 1.41.1+dfsg1
[rustc.git] / src / test / ui / methods / method-self-arg-1.stderr
1 error[E0308]: mismatched types
2 --> $DIR/method-self-arg-1.rs:11:14
3 |
4 LL | Foo::bar(x);
5 | ^
6 | |
7 | expected `&Foo`, found struct `Foo`
8 | help: consider borrowing here: `&x`
9
10 error[E0308]: mismatched types
11 --> $DIR/method-self-arg-1.rs:13:14
12 |
13 LL | Foo::bar(&42);
14 | ^^^ expected struct `Foo`, found integer
15 |
16 = note: expected reference `&Foo`
17 found reference `&{integer}`
18
19 error: aborting due to 2 previous errors
20
21 For more information about this error, try `rustc --explain E0308`.