We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
See https://doc.rust-lang.org/reference/tokens.html#lifetimes-and-loop-labels
I tried this code:
struct Foo<'crate, T>{ a: &'crate T } fn main() {}
I expected to see this happen: error: lifetimes cannot use keyword names
Instead, this happened: compiled.
The text was updated successfully, but these errors were encountered:
According to the issue description, the issue seems to be resolved? af5fdee
TRS-E14 gccrs-build $ cat kw.rs #[lang = "sized"] pub trait Sized {} struct Foo<'crate, T>{ _a: &'crate T } fn main() { let s = (); let _ = Foo { _a: &s }; } TRS-E14 gccrs-build :( $ gccrs kw.rs kw.rs:5:12: error: lifetimes cannot use keyword names 5 | struct Foo<'crate, T>{ | ^~~~~~ kw.rs:6:10: error: lifetimes cannot use keyword names 6 | _a: &'crate T | ^~~~~~ TRS-E14 gccrs-build :( $
There also seems to be tests for this lifetime_name_validation.rs
lifetime_name_validation.rs
Sorry, something went wrong.
Yes i think so
No branches or pull requests
See https://doc.rust-lang.org/reference/tokens.html#lifetimes-and-loop-labels
I tried this code:
I expected to see this happen:
error: lifetimes cannot use keyword names
Instead, this happened:
compiled.
Meta
The text was updated successfully, but these errors were encountered: