]> git.lizzy.rs Git - rust.git/blob - src/test/ui/error-codes/E0061.stderr
Add 'compiler/rustc_codegen_cranelift/' from commit '793d26047f994e23415f8f6bb5686ff2...
[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 | fn f(a: u16, b: &str) {}
5    | --------------------- defined here
6 ...
7 LL |     f(0);
8    |     ^ - supplied 1 argument
9    |     |
10    |     expected 2 arguments
11
12 error[E0061]: this function takes 1 argument but 0 arguments were supplied
13   --> $DIR/E0061.rs:10:5
14    |
15 LL | fn f2(a: u16) {}
16    | ------------- defined here
17 ...
18 LL |     f2();
19    |     ^^-- supplied 0 arguments
20    |     |
21    |     expected 1 argument
22
23 error: aborting due to 2 previous errors
24
25 For more information about this error, try `rustc --explain E0061`.