@@ -34,11 +34,47 @@ LL | () => { mod test { fn gen() {} } }
3434error: `gen` is a keyword in the 2024 edition
3535 --> $DIR/gen-kw.rs:25:9
3636 |
37- LL | fn test<'gen>() {}
37+ LL | fn test<'gen>(_: &'gen i32 ) {}
3838 | ^^^^ help: you can use a raw identifier to stay compatible: `'r#gen`
3939 |
4040 = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2024!
4141 = note: for more information, see issue #49716 <https://github.com/rust-lang/rust/issues/49716>
4242
43- error: aborting due to 4 previous errors
43+ error: `gen` is a keyword in the 2024 edition
44+ --> $DIR/gen-kw.rs:25:19
45+ |
46+ LL | fn test<'gen>(_: &'gen i32) {}
47+ | ^^^^ help: you can use a raw identifier to stay compatible: `'r#gen`
48+ |
49+ = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2024!
50+ = note: for more information, see issue #49716 <https://github.com/rust-lang/rust/issues/49716>
51+
52+ error: `gen` is a keyword in the 2024 edition
53+ --> $DIR/gen-kw.rs:33:13
54+ |
55+ LL | struct Test<'gen>(Box<Test<'gen>>, &'gen ());
56+ | ^^^^ help: you can use a raw identifier to stay compatible: `'r#gen`
57+ |
58+ = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2024!
59+ = note: for more information, see issue #49716 <https://github.com/rust-lang/rust/issues/49716>
60+
61+ error: `gen` is a keyword in the 2024 edition
62+ --> $DIR/gen-kw.rs:33:28
63+ |
64+ LL | struct Test<'gen>(Box<Test<'gen>>, &'gen ());
65+ | ^^^^ help: you can use a raw identifier to stay compatible: `'r#gen`
66+ |
67+ = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2024!
68+ = note: for more information, see issue #49716 <https://github.com/rust-lang/rust/issues/49716>
69+
70+ error: `gen` is a keyword in the 2024 edition
71+ --> $DIR/gen-kw.rs:33:37
72+ |
73+ LL | struct Test<'gen>(Box<Test<'gen>>, &'gen ());
74+ | ^^^^ help: you can use a raw identifier to stay compatible: `'r#gen`
75+ |
76+ = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2024!
77+ = note: for more information, see issue #49716 <https://github.com/rust-lang/rust/issues/49716>
78+
79+ error: aborting due to 8 previous errors
4480
0 commit comments