summaryrefslogtreecommitdiffstats
path: root/src/test/ui/issues/issue-40510-4.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/issues/issue-40510-4.rs')
-rw-r--r--src/test/ui/issues/issue-40510-4.rs15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/test/ui/issues/issue-40510-4.rs b/src/test/ui/issues/issue-40510-4.rs
new file mode 100644
index 000000000..48bb8d36f
--- /dev/null
+++ b/src/test/ui/issues/issue-40510-4.rs
@@ -0,0 +1,15 @@
+// check-pass
+#![allow(unused)]
+
+fn f() {
+ let x: Vec<()> = Vec::new();
+
+ || {
+ || {
+ x.len()
+ }
+ };
+}
+
+
+fn main() {}