File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 11struct S < ' 1 > { s : & ' 1 usize }
2- //~^ ERROR lifetimes cannot start with a number
3- //~| ERROR lifetimes cannot start with a number
2+ //~^ ERROR lifetimes or labels cannot start with a number
3+ //~| ERROR lifetimes or labels cannot start with a number
44fn main ( ) {
55 // verify that the parse error doesn't stop type checking
66 let x: usize = "";
Original file line number Diff line number Diff line change @@ -6,13 +6,13 @@ LL | let x: usize = "";
66 | |
77 | expected due to this
88
9- error: lifetimes cannot start with a number
9+ error: lifetimes or labels cannot start with a number
1010 --> $DIR/numeric-lifetime.rs:1:10
1111 |
1212LL | struct S<'1> { s: &'1 usize }
1313 | ^^
1414
15- error: lifetimes cannot start with a number
15+ error: lifetimes or labels cannot start with a number
1616 --> $DIR/numeric-lifetime.rs:1:20
1717 |
1818LL | struct S<'1> { s: &'1 usize }
You can’t perform that action at this time.
0 commit comments