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
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | fn foo(a: usize) {}
|
2017-12-12 14:46:33 -06:00
|
|
|
| ---------------- defined here
|
2018-02-24 17:01:39 -06:00
|
|
|
LL | //~^ defined here
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | 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"
|