]> git.lizzy.rs Git - rust.git/blob - src/test/ui/error-codes/E0061.stderr
Rollup merge of #97915 - tbu-:pr_os_string_fmt_write, r=joshtriplett
[rust.git] / src / test / ui / error-codes / E0061.stderr
1 error[E0061]: this function takes 2 arguments but 1 argument was supplied
2   --> $DIR/E0061.rs:6:5
3    |
4 LL |     f(0);
5    |     ^--- an argument of type `&str` is missing
6    |
7 note: function defined here
8   --> $DIR/E0061.rs:1:4
9    |
10 LL | fn f(a: u16, b: &str) {}
11    |    ^ ------  -------
12 help: provide the argument
13    |
14 LL |     f(0, /* &str */);
15    |     ~~~~~~~~~~~~~~~~
16
17 error[E0061]: this function takes 1 argument but 0 arguments were supplied
18   --> $DIR/E0061.rs:9:5
19    |
20 LL |     f2();
21    |     ^^-- an argument of type `u16` is missing
22    |
23 note: function defined here
24   --> $DIR/E0061.rs:3:4
25    |
26 LL | fn f2(a: u16) {}
27    |    ^^ ------
28 help: provide the argument
29    |
30 LL |     f2(/* u16 */);
31    |     ~~~~~~~~~~~~~
32
33 error: aborting due to 2 previous errors
34
35 For more information about this error, try `rustc --explain E0061`.