]> git.lizzy.rs Git - rust.git/blob - tests/ui/nll/user-annotations/closure-sig.rs
Auto merge of #105716 - chriswailes:ndk-update-redux, r=pietroalbini
[rust.git] / tests / ui / nll / user-annotations / closure-sig.rs
1 // This test fails if #104478 is fixed before #104477.
2
3 // check-pass
4
5 struct Printer<'a, 'b>(&'a (), &'b ());
6
7 impl Printer<'_, '_> {
8     fn test(self) {
9         let clo = |_: &'_ Self| {};
10         clo(&self);
11         clo(&self);
12     }
13 }
14
15 fn main() {}