summaryrefslogtreecommitdiffstats
path: root/src/test/ui/for/for-loop-unconstrained-element-type.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/for/for-loop-unconstrained-element-type.rs')
-rw-r--r--src/test/ui/for/for-loop-unconstrained-element-type.rs9
1 files changed, 0 insertions, 9 deletions
diff --git a/src/test/ui/for/for-loop-unconstrained-element-type.rs b/src/test/ui/for/for-loop-unconstrained-element-type.rs
deleted file mode 100644
index 0c7a3516a..000000000
--- a/src/test/ui/for/for-loop-unconstrained-element-type.rs
+++ /dev/null
@@ -1,9 +0,0 @@
-// Test that `for` loops don't introduce artificial
-// constraints on the type of the binding (`i`).
-// Subtle changes in the desugaring can cause the
-// type of elements in the vector to (incorrectly)
-// fallback to `!` or `()`.
-
-fn main() {
- for i in Vec::new() { } //~ ERROR type annotations needed
-}