fork/rust

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

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

master
613 B19 linesraw
1error[E0061]: this function takes 1 argument but 0 arguments were supplied
2  --> $DIR/display-is-suggestable.rs:6:5
3   |
4LL |     foo();
5   |     ^^^-- an argument of type `&dyn std::fmt::Display + Send` is missing
6   |
7note: function defined here
8  --> $DIR/display-is-suggestable.rs:3:4
9   |
10LL | fn foo(x: &(dyn Display + Send)) {}
11   |    ^^^ ------------------------
12help: provide the argument
13   |
14LL |     foo(/* &dyn std::fmt::Display + Send */);
15   |        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
16
17error: aborting due to previous error
18
19For more information about this error, try `rustc --explain E0061`.