mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-25 16:24:46 +00:00
16 lines
241 B
Rust
16 lines
241 B
Rust
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() {}
|