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