blob: 7d85a122e1734430dd921332393866281284ddf2 (
plain)
| 1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
 | //@ run-pass
struct S<'a>(&'a ());
impl<'a> S<'a> {
    fn foo(self) -> &'a () {
        <Self>::bar(self)
    }
    fn bar(self) -> &'a () {
        self.0
    }
}
fn main() {
    S(&()).foo();
}
 |