summaryrefslogtreecommitdiffstats
path: root/src/test/ui/for/for-loop-bogosity.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/for/for-loop-bogosity.rs')
-rw-r--r--src/test/ui/for/for-loop-bogosity.rs21
1 files changed, 0 insertions, 21 deletions
diff --git a/src/test/ui/for/for-loop-bogosity.rs b/src/test/ui/for/for-loop-bogosity.rs
deleted file mode 100644
index 9341dea09..000000000
--- a/src/test/ui/for/for-loop-bogosity.rs
+++ /dev/null
@@ -1,21 +0,0 @@
-struct MyStruct {
- x: isize,
- y: isize,
-}
-
-impl MyStruct {
- fn next(&mut self) -> Option<isize> {
- Some(self.x)
- }
-}
-
-pub fn main() {
- let mut bogus = MyStruct {
- x: 1,
- y: 2,
- };
- for x in bogus {
- //~^ ERROR `MyStruct` is not an iterator
- drop(x);
- }
-}