summaryrefslogtreecommitdiffstats
path: root/tests/ui/lifetimes/lifetime-no-keyword.rs
blob: f466f44f5a5995525bfd821060cfe0f4da9f2622 (plain)
1
2
3
4
5
6
7
fn foo<'a>(a: &'a isize) { }
fn bar(a: &'static isize) { }
fn baz<'let>(a: &'let isize) { } //~ ERROR lifetimes cannot use keyword names
//~^ ERROR lifetimes cannot use keyword names
fn zab<'self>(a: &'self isize) { } //~ ERROR lifetimes cannot use keyword names
//~^ ERROR lifetimes cannot use keyword names
fn main() { }