summaryrefslogtreecommitdiffstats
path: root/tests/ui/closures/binder/late-bound-in-body.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/closures/binder/late-bound-in-body.rs')
-rw-r--r--tests/ui/closures/binder/late-bound-in-body.rs9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/ui/closures/binder/late-bound-in-body.rs b/tests/ui/closures/binder/late-bound-in-body.rs
new file mode 100644
index 000000000..bb5c7552f
--- /dev/null
+++ b/tests/ui/closures/binder/late-bound-in-body.rs
@@ -0,0 +1,9 @@
+// check-pass
+
+#![feature(closure_lifetime_binder)]
+
+fn main() {
+ let _ = for<'a> || -> () {
+ let _: &'a bool = &true;
+ };
+}