]> git.proxmox.com Git - rustc.git/blob - tests/ui/issues/issue-18819.stderr
New upstream version 1.68.2+dfsg1
[rustc.git] / tests / ui / issues / issue-18819.stderr
1 error[E0061]: this function takes 2 arguments but 1 argument was supplied
2 --> $DIR/issue-18819.rs:16:5
3 |
4 LL | print_x(X);
5 | ^^^^^^^--- an argument of type `&str` is missing
6 |
7 note: expected reference, found struct `X`
8 --> $DIR/issue-18819.rs:16:13
9 |
10 LL | print_x(X);
11 | ^
12 = note: expected reference `&dyn Foo<Item = bool>`
13 found struct `X`
14 note: function defined here
15 --> $DIR/issue-18819.rs:11:4
16 |
17 LL | fn print_x(_: &dyn Foo<Item=bool>, extra: &str) {
18 | ^^^^^^^ ---------------------- -----------
19 help: consider borrowing here
20 |
21 LL | print_x(&X);
22 | ~~
23 help: provide the argument
24 |
25 LL | print_x(/* &dyn Foo<Item = bool> */, /* &str */);
26 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
27
28 error: aborting due to previous error
29
30 For more information about this error, try `rustc --explain E0061`.