1
Fork 0
rust/src/test/ui/parser/numeric-lifetime.rs

9 lines
255 B
Rust
Raw Normal View History

struct S<'1> { s: &'1 usize }
//~^ ERROR lifetimes can't start with a number
//~| ERROR lifetimes can't start with a number
fn main() {
// verify that the parse error doesn't stop type checking
let x: usize = "";
//~^ ERROR mismatched types
}