rust/src/test/ui/span/issue-34264.stderr

50 lines
1.6 KiB
Plaintext
Raw Normal View History

error: expected one of `:` or `@`, found `<`
--> $DIR/issue-34264.rs:11:14
|
2017-11-20 06:13:27 -06:00
11 | fn foo(Option<i32>, String) {} //~ ERROR expected one of
| ^ expected one of `:` or `@` here
error: expected one of `:` or `@`, found `)`
--> $DIR/issue-34264.rs:11:27
|
2017-11-20 06:13:27 -06:00
11 | fn foo(Option<i32>, String) {} //~ ERROR expected one of
| ^ expected one of `:` or `@` here
error: expected one of `:` or `@`, found `,`
2017-11-20 06:13:27 -06:00
--> $DIR/issue-34264.rs:13:9
|
2017-11-20 06:13:27 -06:00
13 | fn bar(x, y: usize) {} //~ ERROR expected one of
| ^ expected one of `:` or `@` here
error[E0061]: this function takes 2 parameters but 3 parameters were supplied
2017-11-20 06:13:27 -06:00
--> $DIR/issue-34264.rs:17:9
|
2017-11-20 06:13:27 -06:00
11 | fn foo(Option<i32>, String) {} //~ ERROR expected one of
| ------------------------------ defined here
...
2017-11-20 06:13:27 -06:00
17 | foo(Some(42), 2, ""); //~ ERROR this function takes
| ^^^^^^^^^^^^^^^ expected 2 parameters
error[E0308]: mismatched types
2017-11-20 06:13:27 -06:00
--> $DIR/issue-34264.rs:18:13
|
2017-11-20 06:13:27 -06:00
18 | bar("", ""); //~ ERROR mismatched types
| ^^ 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
2017-11-20 06:13:27 -06:00
--> $DIR/issue-34264.rs:20:9
|
2017-11-20 06:13:27 -06:00
13 | fn bar(x, y: usize) {} //~ ERROR expected one of
| ---------------------- defined here
...
2017-11-20 06:13:27 -06:00
20 | bar(1, 2, 3); //~ ERROR this function takes
| ^^^^^^^ expected 2 parameters
error: aborting due to 6 previous errors