rust/tests/ui/parser/numeric-lifetime.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

9 lines
277 B
Rust
Raw Normal View History

struct S<'1> { s: &'1 usize }
2023-02-14 10:17:59 +00:00
//~^ ERROR lifetimes or labels cannot start with a number
//~| ERROR lifetimes or labels cannot start with a number
fn main() {
// verify that the parse error doesn't stop type checking
let x: usize = "";
//~^ ERROR mismatched types
}