]> git.lizzy.rs Git - rust.git/blob - src/test/ui/parser/numeric-lifetime.rs
Merge commit '5ff7b632a95bac6955611d85040859128902c580' into sync-rustfmt-subtree
[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 }