summaryrefslogtreecommitdiffstats
path: root/tests/ui/issues/issue-15735.rs
blob: f9ba34405f69829cf129838f2b50b84a81fb2021 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// 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() { }