rust/tests/ui/regions/regions-in-structs.rs

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

16 lines
241 B
Rust
Raw Normal View History

struct Yes1<'a> {
x: &'a usize,
}
struct Yes2<'a> {
x: &'a usize,
}
struct StructDecl {
a: &'a isize, //~ ERROR use of undeclared lifetime name `'a`
b: &'a isize, //~ ERROR use of undeclared lifetime name `'a`
}
fn main() {}