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

50 lines
1.6 KiB
Plaintext
Raw Normal View History

error: expected one of `:` or `@`, found `<`
2018-12-25 09:56:47 -06:00
--> $DIR/issue-34264.rs:1:14
|
2018-02-22 18:42:32 -06:00
LL | fn foo(Option<i32>, String) {} //~ ERROR expected one of
| ^ expected one of `:` or `@` here
error: expected one of `:` or `@`, found `)`
2018-12-25 09:56:47 -06:00
--> $DIR/issue-34264.rs:1:27
|
2018-02-22 18:42:32 -06:00
LL | fn foo(Option<i32>, String) {} //~ ERROR expected one of
| ^ expected one of `:` or `@` here
error: expected one of `:` or `@`, found `,`
2018-12-25 09:56:47 -06:00
--> $DIR/issue-34264.rs:3:9
|
2018-02-22 18:42:32 -06:00
LL | 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
2018-12-25 09:56:47 -06:00
--> $DIR/issue-34264.rs:7:5
|
2018-02-22 18:42:32 -06:00
LL | fn foo(Option<i32>, String) {} //~ ERROR expected one of
| --------------------------- defined here
...
2018-02-22 18:42:32 -06:00
LL | foo(Some(42), 2, ""); //~ ERROR this function takes
| ^^^^^^^^^^^^^^^^^^^^ expected 2 parameters
error[E0308]: mismatched types
2018-12-25 09:56:47 -06:00
--> $DIR/issue-34264.rs:8:13
|
2018-02-22 18:42:32 -06:00
LL | bar("", ""); //~ ERROR mismatched types
| ^^ expected usize, found reference
|
= note: expected type `usize`
found type `&'static str`
error[E0061]: this function takes 2 parameters but 3 parameters were supplied
2018-12-25 09:56:47 -06:00
--> $DIR/issue-34264.rs:10:5
|
2018-02-22 18:42:32 -06:00
LL | fn bar(x, y: usize) {} //~ ERROR expected one of
| ------------------- defined here
...
2018-02-22 18:42:32 -06:00
LL | bar(1, 2, 3); //~ ERROR this function takes
| ^^^^^^^^^^^^ expected 2 parameters
error: aborting due to 6 previous errors
2018-03-03 08:59:40 -06:00
Some errors occurred: E0061, E0308.
For more information about an error, try `rustc --explain E0061`.