2017-12-10 13:47:55 -06:00
|
|
|
error[E0061]: this function takes 1 parameter but 2 parameters were supplied
|
2017-12-12 14:46:33 -06:00
|
|
|
--> $DIR/issue-4935.rs:15:13
|
2017-12-10 13:47:55 -06:00
|
|
|
|
|
|
|
|
13 | fn foo(a: usize) {}
|
2017-12-12 14:46:33 -06:00
|
|
|
| ---------------- defined here
|
2017-12-10 13:47:55 -06:00
|
|
|
14 | //~^ defined here
|
|
|
|
15 | fn main() { foo(5, 6) }
|
2017-12-12 14:46:33 -06:00
|
|
|
| ^^^^^^^^^ expected 1 parameter
|
2017-12-10 13:47:55 -06:00
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|
2018-02-19 14:40:25 -06:00
|
|
|
If you want more information on this error, try using "rustc --explain E0061"
|