blob: 5b96969f5b9711d8e3df9f7d1f7d6d3d3fa4c0eb [file]
fn main() {
//~^ HELP consider introducing lifetime `'a` here
f<'a,>
//~^ ERROR use `::<...>` instead of `<...>` to specify lifetime, type, or const arguments
//~| HELP add `::`
//~| ERROR use of undeclared lifetime name `'a`
//~| ERROR cannot find value `f` in this scope
}
fn bar(a: usize, b: usize) -> usize {
a + b
}
fn foo() {
let x = 1;
bar('y, x);
//~^ ERROR expected
//~| HELP add `'` to close the char literal
//~| ERROR mismatched types
}