50 lines
1.3 KiB
Plaintext
50 lines
1.3 KiB
Plaintext
|
error: expected one of `:` or `@`, found `<`
|
||
|
--> $DIR/issue-34264.rs:11:14
|
||
|
|
|
||
|
11 | fn foo(Option<i32>, String) {}
|
||
|
| ^
|
||
|
|
||
|
error: expected one of `:` or `@`, found `)`
|
||
|
--> $DIR/issue-34264.rs:11:27
|
||
|
|
|
||
|
11 | fn foo(Option<i32>, String) {}
|
||
|
| ^
|
||
|
|
||
|
error: expected one of `:` or `@`, found `,`
|
||
|
--> $DIR/issue-34264.rs:12:9
|
||
|
|
|
||
|
12 | fn bar(x, y: usize) {}
|
||
|
| ^
|
||
|
|
||
|
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
|
||
|
|
||
|
error: aborting due to 3 previous errors
|
||
|
|