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

16 lines
494 B
Plaintext
Raw Normal View History

2018-02-07 19:35:35 -08:00
error[E0057]: this function takes 1 parameter but 0 parameters were supplied
2018-12-25 08:56:47 -07:00
--> $DIR/E0057.rs:3:13
2018-02-07 19:35:35 -08:00
|
2018-02-23 03:42:32 +03:00
LL | let a = f(); //~ ERROR E0057
2018-02-07 19:35:35 -08:00
| ^^^ expected 1 parameter
error[E0057]: this function takes 1 parameter but 2 parameters were supplied
2018-12-25 08:56:47 -07:00
--> $DIR/E0057.rs:5:13
2018-02-07 19:35:35 -08:00
|
2018-02-23 03:42:32 +03:00
LL | let c = f(2, 3); //~ ERROR E0057
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 E0057`.