mirror of https://github.com/rust-lang/rust
45 lines
1.8 KiB
Plaintext
45 lines
1.8 KiB
Plaintext
error: `gen` is a keyword in the 2024 edition
|
|
--> $DIR/gen-kw.rs:6:4
|
|
|
|
|
LL | fn gen() {}
|
|
| ^^^ help: you can use a raw identifier to stay compatible: `r#gen`
|
|
|
|
|
= warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2024!
|
|
= note: for more information, see issue #49716 <https://github.com/rust-lang/rust/issues/49716>
|
|
note: the lint level is defined here
|
|
--> $DIR/gen-kw.rs:4:9
|
|
|
|
|
LL | #![deny(rust_2024_compatibility)]
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^
|
|
= note: `#[deny(keyword_idents_2024)]` implied by `#[deny(rust_2024_compatibility)]`
|
|
|
|
error: `gen` is a keyword in the 2024 edition
|
|
--> $DIR/gen-kw.rs:12:9
|
|
|
|
|
LL | let gen = r#gen;
|
|
| ^^^ help: you can use a raw identifier to stay compatible: `r#gen`
|
|
|
|
|
= warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2024!
|
|
= note: for more information, see issue #49716 <https://github.com/rust-lang/rust/issues/49716>
|
|
|
|
error: `gen` is a keyword in the 2024 edition
|
|
--> $DIR/gen-kw.rs:19:27
|
|
|
|
|
LL | () => { mod test { fn gen() {} } }
|
|
| ^^^ help: you can use a raw identifier to stay compatible: `r#gen`
|
|
|
|
|
= warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2024!
|
|
= note: for more information, see issue #49716 <https://github.com/rust-lang/rust/issues/49716>
|
|
|
|
error: `gen` is a keyword in the 2024 edition
|
|
--> $DIR/gen-kw.rs:25:9
|
|
|
|
|
LL | fn test<'gen>() {}
|
|
| ^^^^ help: you can use a raw identifier to stay compatible: `'r#gen`
|
|
|
|
|
= warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2024!
|
|
= note: for more information, see issue #49716 <https://github.com/rust-lang/rust/issues/49716>
|
|
|
|
error: aborting due to 4 previous errors
|
|
|