rust/src/test/ui/error-codes/E0061.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

32 lines
719 B
Plaintext
Raw Normal View History

error[E0061]: this function takes 2 arguments but 1 argument was supplied
2018-12-25 15:56:47 +00:00
--> $DIR/E0061.rs:6:5
2018-02-08 03:35:35 +00:00
|
2018-02-23 00:42:32 +00:00
LL | f(0);
| ^ - supplied 1 argument
| |
| expected 2 arguments
|
note: function defined here
--> $DIR/E0061.rs:1:4
|
LL | fn f(a: u16, b: &str) {}
| ^ ------ -------
2018-02-08 03:35:35 +00:00
error[E0061]: this function takes 1 argument but 0 arguments were supplied
2018-12-25 15:56:47 +00:00
--> $DIR/E0061.rs:10:5
2018-02-08 03:35:35 +00:00
|
2018-02-23 00:42:32 +00:00
LL | f2();
| ^^-- supplied 0 arguments
| |
| expected 1 argument
|
note: function defined here
--> $DIR/E0061.rs:3:4
|
LL | fn f2(a: u16) {}
| ^^ ------
2018-02-08 03:35:35 +00:00
error: aborting due to 2 previous errors
2018-03-03 14:59:40 +00:00
For more information about this error, try `rustc --explain E0061`.