]> git.lizzy.rs Git - rust.git/blob - src/test/ui/argument-suggestions/display-is-suggestable.stderr
Rollup merge of #105724 - notriddle:notriddle/scrape-example-src-line-numbers, r...
[rust.git] / src / test / ui / argument-suggestions / display-is-suggestable.stderr
1 error[E0061]: this function takes 1 argument but 0 arguments were supplied
2   --> $DIR/display-is-suggestable.rs:6:5
3    |
4 LL |     foo();
5    |     ^^^-- an argument of type `&dyn std::fmt::Display + Send` is missing
6    |
7 note: function defined here
8   --> $DIR/display-is-suggestable.rs:3:4
9    |
10 LL | fn foo(x: &(dyn Display + Send)) {}
11    |    ^^^ ------------------------
12 help: provide the argument
13    |
14 LL |     foo(/* &dyn std::fmt::Display + Send */);
15    |        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
16
17 error: aborting due to previous error
18
19 For more information about this error, try `rustc --explain E0061`.