2017-12-10 13:47:55 -06:00
|
|
|
error[E0061]: this function takes 1 parameter but 2 parameters were supplied
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/issue-4935.rs:5: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
|
2019-03-09 06:03:44 -06:00
|
|
|
LL |
|
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-03-03 08:59:40 -06:00
|
|
|
For more information about this error, try `rustc --explain E0061`.
|