]> git.lizzy.rs Git - rust.git/blob - src/test/ui/parser/numeric-lifetime.rs
Sync rust-lang/portable-simd@5f49d4c8435a25d804b2f375e949cb25479f5be9
[rust.git] / src / test / ui / parser / numeric-lifetime.rs
1 struct S<'1> { s: &'1 usize }
2 //~^ ERROR lifetimes cannot start with a number
3 //~| ERROR lifetimes cannot start with a number
4 fn main() {
5     // verify that the parse error doesn't stop type checking
6     let x: usize = "";
7     //~^ ERROR mismatched types
8 }