We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b7f5bca commit 3071a81Copy full SHA for 3071a81
tests/ui/regions/closure-prop-issue-104477-case2.rs
@@ -0,0 +1,10 @@
1
+//@ check-pass
2
+// FIXME: add explanation.
3
+
4
+struct MyTy<'a, 'b, 'x>(std::cell::Cell<(&'a &'x str, &'b &'x str)>);
5
+fn wf<T>(_: T) {}
6
+fn test<'a, 'b, 'x>() {
7
+ |x: MyTy<'a, 'b, '_>| wf(x);
8
+}
9
10
+fn main() {}
0 commit comments