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