2022-02-02 12:33:13 -06:00
|
|
|
error: expected `while`, `for`, `loop` or `{` after a label
|
|
|
|
--> $DIR/issue-93282.rs:2:9
|
|
|
|
|
|
|
|
|
LL | f<'a,>
|
|
|
|
| ^ expected `while`, `for`, `loop` or `{` after a label
|
2022-09-01 13:48:09 -05:00
|
|
|
|
|
|
|
|
help: add `'` to close the char literal
|
|
|
|
|
|
|
|
|
LL | f<'a',>
|
|
|
|
| +
|
2022-02-02 12:33:13 -06:00
|
|
|
|
2022-05-01 12:05:35 -05:00
|
|
|
error: expected one of `.`, `:`, `;`, `?`, `for`, `loop`, `while`, `}`, or an operator, found `,`
|
2022-01-25 12:47:10 -06:00
|
|
|
--> $DIR/issue-93282.rs:2:9
|
|
|
|
|
|
|
|
|
LL | f<'a,>
|
2022-05-01 12:05:35 -05:00
|
|
|
| ^ expected one of 9 possible tokens
|
2022-01-25 12:47:10 -06:00
|
|
|
|
|
|
|
|
help: use `::<...>` instead of `<...>` to specify lifetime, type, or const arguments
|
|
|
|
|
|
|
|
|
LL | f::<'a,>
|
|
|
|
| ++
|
|
|
|
|
2022-02-02 12:33:13 -06:00
|
|
|
error: expected `while`, `for`, `loop` or `{` after a label
|
|
|
|
--> $DIR/issue-93282.rs:13:11
|
|
|
|
|
|
|
|
|
LL | bar('y, x);
|
|
|
|
| ^ expected `while`, `for`, `loop` or `{` after a label
|
2022-09-01 13:48:09 -05:00
|
|
|
|
|
|
|
|
help: add `'` to close the char literal
|
|
|
|
|
|
|
|
|
LL | bar('y', x);
|
|
|
|
| +
|
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
|
|
|
--> $DIR/issue-93282.rs:13:9
|
|
|
|
|
|
|
|
|
LL | bar('y, x);
|
|
|
|
| --- ^^ expected `usize`, found `char`
|
|
|
|
| |
|
|
|
|
| arguments to this function are incorrect
|
|
|
|
|
|
|
|
|
note: function defined here
|
|
|
|
--> $DIR/issue-93282.rs:7:4
|
|
|
|
|
|
|
|
|
LL | fn bar(a: usize, b: usize) -> usize {
|
|
|
|
| ^^^ --------
|
2022-02-02 12:33:13 -06:00
|
|
|
|
2022-09-01 13:48:09 -05:00
|
|
|
error: aborting due to 4 previous errors
|
2022-01-25 12:47:10 -06:00
|
|
|
|
2022-09-01 13:48:09 -05:00
|
|
|
For more information about this error, try `rustc --explain E0308`.
|