2019-03-02 10:38:20 -08:00
|
|
|
struct S<'1> { s: &'1 usize }
|
2023-04-10 06:52:18 +00:00
|
|
|
//~^ ERROR lifetimes cannot start with a number
|
|
|
|
//~| ERROR lifetimes cannot start with a number
|
2019-03-02 10:38:20 -08:00
|
|
|
fn main() {
|
|
|
|
// verify that the parse error doesn't stop type checking
|
|
|
|
let x: usize = "";
|
|
|
|
//~^ ERROR mismatched types
|
|
|
|
}
|