]> git.lizzy.rs Git - rust.git/blob - src/test/ui/parser/numeric-lifetime.rs
Merge commit '5034d47f721ff4c3a3ff2aca9ef2ef3e1d067f9f' 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 }