-
-
Notifications
You must be signed in to change notification settings - Fork 327
Open
Description
As of nightly-2024-07-18, rustc has begin rejecting code such as the following, which used to parse successfully. rust-lang/rust#126762
#[cfg(any())]
fn f<'ref>() {}
error: lifetimes cannot use keyword names
--> src/main.rs:2:6
|
2 | fn f<'ref>() {}
| ^^^^
If this is no longer valid Rust syntax, syn should reject it too.
Metadata
Metadata
Assignees
Labels
No labels