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 fe7eadeCopy full SHA for fe7eade
tests/ui/regions/closure-prop-issue-104477-case2.rs
@@ -0,0 +1,8 @@
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
+}
0 commit comments