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

22 lines
558 B
Plaintext
Raw Normal View History

2018-02-07 19:35:35 -08:00
error[E0061]: this function takes 2 parameters but 1 parameter was supplied
--> $DIR/E0061.rs:16:5
|
2018-02-23 03:42:32 +03:00
LL | fn f(a: u16, b: &str) {}
2018-02-07 19:35:35 -08:00
| --------------------- defined here
...
2018-02-23 03:42:32 +03:00
LL | f(0);
2018-02-07 19:35:35 -08:00
| ^^^^ expected 2 parameters
error[E0061]: this function takes 1 parameter but 0 parameters were supplied
--> $DIR/E0061.rs:20:5
|
2018-02-23 03:42:32 +03:00
LL | fn f2(a: u16) {}
2018-02-07 19:35:35 -08:00
| ------------- defined here
...
2018-02-23 03:42:32 +03:00
LL | f2();
2018-02-07 19:35:35 -08:00
| ^^^^ expected 1 parameter
error: aborting due to 2 previous errors
2018-03-03 15:59:40 +01:00
For more information about this error, try `rustc --explain E0061`.