mirror of
https://github.com/rust-lang/rust.git
synced 2025-04-13 20:46:48 +00:00
Update numeric lifetime test
This commit is contained in:
parent
380fa26413
commit
98b82aedba
@ -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…
Reference in New Issue
Block a user