rust/tests/ui/lifetimes/raw/gen-lt.rs

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

15 lines
261 B
Rust
Raw Normal View History

2024-06-13 19:56:28 -05:00
//@ revisions: e2021 e2024
//@[e2021] edition:2021
//@[e2024] edition:2024
//@[e2024] compile-flags: -Zunstable-options
//@[e2021] check-pass
fn raw_gen_lt<'r#gen>() {}
fn gen_lt<'gen>() {}
//[e2024]~^ ERROR lifetimes cannot use keyword names
fn main() {}