Update numeric lifetime test
This commit is contained in:
parent
380fa26413
commit
98b82aedba
2 changed files with 4 additions and 4 deletions
|
@ -1,6 +1,6 @@
|
|||
struct S<'1> { s: &'1 usize }
|
||||
//~^ ERROR lifetimes cannot start with a number
|
||||
//~| ERROR lifetimes cannot start with a number
|
||||
//~^ ERROR lifetimes or labels cannot start with a number
|
||||
//~| ERROR lifetimes or labels cannot start with a number
|
||||
fn main() {
|
||||
// verify that the parse error doesn't stop type checking
|
||||
let x: usize = "";
|
||||
|
|
|
@ -6,13 +6,13 @@ LL | let x: usize = "";
|
|||
| |
|
||||
| expected due to this
|
||||
|
||||
error: lifetimes cannot start with a number
|
||||
error: lifetimes or labels cannot start with a number
|
||||
--> $DIR/numeric-lifetime.rs:1:10
|
||||
|
|
||||
LL | struct S<'1> { s: &'1 usize }
|
||||
| ^^
|
||||
|
||||
error: lifetimes cannot start with a number
|
||||
error: lifetimes or labels cannot start with a number
|
||||
--> $DIR/numeric-lifetime.rs:1:20
|
||||
|
|
||||
LL | struct S<'1> { s: &'1 usize }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue