about summary refs log tree commit diff
path: root/tests/ui/for/for-loop-bogosity.stderr
blob: f4d99671f8e0c114465d60697a1824c6d7445873 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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`
  --> $DIR/for-loop-bogosity.rs:1:1
   |
LL | struct MyStruct {
   | ^^^^^^^^^^^^^^^
   = note: required for `MyStruct` to implement `IntoIterator`

error: aborting due to 1 previous error

For more information about this error, try `rustc --explain E0277`.