]> git.lizzy.rs Git - rust.git/blob - src/test/ui/methods/method-self-arg-1.stderr
Merge commit '3e7c6dec244539970b593824334876f8b6ed0b18' into clippyup
[rust.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`.