mirror of https://github.com/rust-lang/rust
13 lines
458 B
Plaintext
13 lines
458 B
Plaintext
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`, which is required by `MyStruct: IntoIterator`
|
|
= note: required for `MyStruct` to implement `IntoIterator`
|
|
|
|
error: aborting due to 1 previous error
|
|
|
|
For more information about this error, try `rustc --explain E0277`.
|