]> git.lizzy.rs Git - rust.git/blob - src/test/ui/lifetimes/lifetime-no-keyword.rs
Rollup merge of #90498 - joshtriplett:target-tier-policy-draft-updates, r=Mark-Simulacrum
[rust.git] / src / test / ui / lifetimes / lifetime-no-keyword.rs
1 fn foo<'a>(a: &'a isize) { }
2 fn bar(a: &'static isize) { }
3 fn baz<'let>(a: &'let isize) { } //~ ERROR lifetimes cannot use keyword names
4 //~^ ERROR lifetimes cannot use keyword names
5 fn zab<'self>(a: &'self isize) { } //~ ERROR lifetimes cannot use keyword names
6 //~^ ERROR lifetimes cannot use keyword names
7 fn main() { }