rust/tests/ui/lifetimes/lifetime-no-keyword.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

8 lines
323 B
Rust
Raw Normal View History

fn foo<'a>(a: &'a isize) { }
fn bar(a: &'static isize) { }
2017-12-06 03:28:01 -06:00
fn baz<'let>(a: &'let isize) { } //~ ERROR lifetimes cannot use keyword names
2017-12-07 02:52:25 -06:00
//~^ ERROR lifetimes cannot use keyword names
2017-12-06 03:28:01 -06:00
fn zab<'self>(a: &'self isize) { } //~ ERROR lifetimes cannot use keyword names
2017-12-07 02:52:25 -06:00
//~^ ERROR lifetimes cannot use keyword names
fn main() { }