2017-03-28 20:56:29 -05:00
|
|
|
error: expected one of `:` or `@`, found `<`
|
|
|
|
--> $DIR/issue-34264.rs:11:14
|
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | fn foo(Option<i32>, String) {} //~ ERROR expected one of
|
2017-04-07 09:19:44 -05:00
|
|
|
| ^ expected one of `:` or `@` here
|
2017-03-28 20:56:29 -05:00
|
|
|
|
|
|
|
error: expected one of `:` or `@`, found `)`
|
|
|
|
--> $DIR/issue-34264.rs:11:27
|
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | fn foo(Option<i32>, String) {} //~ ERROR expected one of
|
2017-04-07 09:19:44 -05:00
|
|
|
| ^ expected one of `:` or `@` here
|
2017-03-28 20:56:29 -05:00
|
|
|
|
|
|
|
error: expected one of `:` or `@`, found `,`
|
2017-11-20 06:13:27 -06:00
|
|
|
--> $DIR/issue-34264.rs:13:9
|
2017-03-28 20:56:29 -05:00
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | fn bar(x, y: usize) {} //~ ERROR expected one of
|
2017-04-07 09:19:44 -05:00
|
|
|
| ^ expected one of `:` or `@` here
|
2017-03-28 20:56:29 -05:00
|
|
|
|
|
|
|
error[E0061]: this function takes 2 parameters but 3 parameters were supplied
|
2017-12-10 13:12:17 -06:00
|
|
|
--> $DIR/issue-34264.rs:17:5
|
2017-03-28 20:56:29 -05:00
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | fn foo(Option<i32>, String) {} //~ ERROR expected one of
|
2017-12-10 13:12:17 -06:00
|
|
|
| --------------------------- defined here
|
2017-03-28 20:56:29 -05:00
|
|
|
...
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | foo(Some(42), 2, ""); //~ ERROR this function takes
|
2017-12-10 13:12:17 -06:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^ expected 2 parameters
|
2017-03-28 20:56:29 -05:00
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
2017-11-20 06:13:27 -06:00
|
|
|
--> $DIR/issue-34264.rs:18:13
|
2017-03-28 20:56:29 -05:00
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | bar("", ""); //~ ERROR mismatched types
|
2017-03-28 20:56:29 -05:00
|
|
|
| ^^ expected usize, found reference
|
|
|
|
|
|
|
|
|
= note: expected type `usize`
|
|
|
|
found type `&'static str`
|
|
|
|
|
|
|
|
error[E0061]: this function takes 2 parameters but 3 parameters were supplied
|
2017-12-10 13:12:17 -06:00
|
|
|
--> $DIR/issue-34264.rs:20:5
|
2017-03-28 20:56:29 -05:00
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | fn bar(x, y: usize) {} //~ ERROR expected one of
|
2017-12-10 13:12:17 -06:00
|
|
|
| ------------------- defined here
|
2017-03-28 20:56:29 -05:00
|
|
|
...
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | bar(1, 2, 3); //~ ERROR this function takes
|
2017-12-10 13:12:17 -06:00
|
|
|
| ^^^^^^^^^^^^ expected 2 parameters
|
2017-03-28 20:56:29 -05:00
|
|
|
|
2017-07-02 08:09:09 -05:00
|
|
|
error: aborting due to 6 previous errors
|
2017-03-28 20:56:29 -05:00
|
|
|
|
2018-02-19 14:40:25 -06:00
|
|
|
You've got a few errors: E0061, E0308
|
|
|
|
If you want more information on an error, try using "rustc --explain E0061"
|