mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 15:23:46 +00:00
18 lines
223 B
Rust
18 lines
223 B
Rust
//@ check-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() { }
|