summaryrefslogtreecommitdiffstats
path: root/src/test/ui/for/for-loop-bogosity.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/for/for-loop-bogosity.stderr')
-rw-r--r--src/test/ui/for/for-loop-bogosity.stderr12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/test/ui/for/for-loop-bogosity.stderr b/src/test/ui/for/for-loop-bogosity.stderr
new file mode 100644
index 000000000..0bdd75b35
--- /dev/null
+++ b/src/test/ui/for/for-loop-bogosity.stderr
@@ -0,0 +1,12 @@
+error[E0277]: `MyStruct` is not an iterator
+ --> $DIR/for-loop-bogosity.rs:17:14
+ |
+LL | for x in bogus {
+ | ^^^^^ `MyStruct` is not an iterator
+ |
+ = help: the trait `Iterator` is not implemented for `MyStruct`
+ = note: required because of the requirements on the impl of `IntoIterator` for `MyStruct`
+
+error: aborting due to previous error
+
+For more information about this error, try `rustc --explain E0277`.