mirror of
https://github.com/rust-lang/rust.git
synced 2025-10-02 10:18:25 +00:00
20 lines
295 B
Rust
20 lines
295 B
Rust
//! Regression test for https://github.com/rust-lang/rust/issues/15735
|
|
|
|
//@ 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() { }
|