blob: 1daacff52f0666b73acbcfefdf9cfa9f2d0e11d4 [file]
error: use `::<...>` instead of `<...>` to specify lifetime, type, or const arguments
--> $DIR/issue-93282.rs:3:6
|
LL | f<'a,>
| ^
|
help: add `::`
|
LL | f::<'a,>
| ++
error: expected `while`, `for`, `loop` or `{` after a label
--> $DIR/issue-93282.rs:16:11
|
LL | bar('y, x);
| ^ expected `while`, `for`, `loop` or `{` after a label
|
help: add `'` to close the char literal
|
LL | bar('y', x);
| +
error[E0261]: use of undeclared lifetime name `'a`
--> $DIR/issue-93282.rs:3:7
|
LL | f<'a,>
| ^^ undeclared lifetime
|
help: consider introducing lifetime `'a` here
|
LL | fn main<'a>() {
| ++++
error[E0425]: cannot find value `f` in this scope
--> $DIR/issue-93282.rs:3:5
|
LL | f<'a,>
| ^ not found in this scope
error[E0308]: mismatched types
--> $DIR/issue-93282.rs:16:9
|
LL | bar('y, x);
| --- ^^ expected `usize`, found `char`
| |
| arguments to this function are incorrect
|
note: function defined here
--> $DIR/issue-93282.rs:10:4
|
LL | fn bar(a: usize, b: usize) -> usize {
| ^^^ --------
error: aborting due to 5 previous errors
Some errors have detailed explanations: E0261, E0308, E0425.
For more information about an error, try `rustc --explain E0261`.