]> git.lizzy.rs Git - rust.git/blob - src/test/ui/parser/numeric-lifetime.rs
Merge commit '03f01bbe901d60b71cf2c5ec766aef5e532ab79d' into update_cg_clif-2020...
[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 }