fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

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