@@ -34,11 +34,47 @@ LL | () => { mod test { fn gen() {} } }
34
34
error: `gen` is a keyword in the 2024 edition
35
35
--> $DIR/gen-kw.rs:25:9
36
36
|
37
- LL | fn test<'gen>() {}
37
+ LL | fn test<'gen>(_: &'gen i32 ) {}
38
38
| ^^^^ help: you can use a raw identifier to stay compatible: `'r#gen`
39
39
|
40
40
= warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2024!
41
41
= note: for more information, see issue #49716 <https://github.com/rust-lang/rust/issues/49716>
42
42
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
44
80
0 commit comments