rust/src/test/ui/issues/issue-15735.rs
2018-12-25 21:08:33 -07:00

18 lines
224 B
Rust

// compile-pass
#![allow(dead_code)]
struct A<'a> {
a: &'a i32,
b: &'a i32,
}
impl <'a> A<'a> {
fn foo<'b>(&'b self) {
A {
a: self.a,
b: self.b,
};
}
}
fn main() { }