2017-03-28 20:56:29 -05:00
|
|
|
error: expected one of `:` or `@`, found `<`
|
|
|
|
--> $DIR/issue-34264.rs:11:14
|
|
|
|
|
|
|
|
|
11 | fn foo(Option<i32>, String) {}
|
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
|
|
|
|
|
|
|
|
|
11 | fn foo(Option<i32>, String) {}
|
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:12:9
|
|
|
|
|
|
|
|
|
12 | fn bar(x, y: usize) {}
|
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
|
|
|
|
--> $DIR/issue-34264.rs:16:9
|
|
|
|
|
|
|
|
|
11 | fn foo(Option<i32>, String) {}
|
|
|
|
| ------------------------------ defined here
|
|
|
|
...
|
|
|
|
16 | foo(Some(42), 2, "");
|
|
|
|
| ^^^^^^^^^^^^^^^ expected 2 parameters
|
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
|
|
|
--> $DIR/issue-34264.rs:17:13
|
|
|
|
|
|
|
|
|
17 | bar("", "");
|
|
|
|
| ^^ expected usize, found reference
|
|
|
|
|
|
|
|
|
= note: expected type `usize`
|
|
|
|
found type `&'static str`
|
|
|
|
= help: here are some functions which might fulfill your needs:
|
|
|
|
- .len()
|
|
|
|
|
|
|
|
error[E0061]: this function takes 2 parameters but 3 parameters were supplied
|
|
|
|
--> $DIR/issue-34264.rs:19:9
|
|
|
|
|
|
|
|
|
12 | fn bar(x, y: usize) {}
|
|
|
|
| ---------------------- defined here
|
|
|
|
...
|
|
|
|
19 | bar(1, 2, 3);
|
|
|
|
| ^^^^^^^ expected 2 parameters
|
|
|
|
|
2017-07-02 05:49:30 -05:00
|
|
|
error: aborting due to 3 previous errors
|
2017-03-28 20:56:29 -05:00
|
|
|
|