]> git.proxmox.com Git - rustc.git/blob - src/test/ui/methods/method-self-arg-1.stderr
New upstream version 1.35.0+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 = note: expected type `&Foo`
11 found type `Foo`
12
13 error[E0308]: mismatched types
14 --> $DIR/method-self-arg-1.rs:15:14
15 |
16 LL | Foo::bar(&42);
17 | ^^^ expected struct `Foo`, found integer
18 |
19 = note: expected type `&Foo`
20 found type `&{integer}`
21
22 error: aborting due to 2 previous errors
23
24 For more information about this error, try `rustc --explain E0308`.