summaryrefslogtreecommitdiffstats
path: root/tests/ui/nll/user-annotations/closure-sig.rs
blob: 4dbd3fd8d81e287c48cbee1c6fcc8d9594b42673 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// This test fails if #104478 is fixed before #104477.

// check-pass

struct Printer<'a, 'b>(&'a (), &'b ());

impl Printer<'_, '_> {
    fn test(self) {
        let clo = |_: &'_ Self| {};
        clo(&self);
        clo(&self);
    }
}

fn main() {}