2018-10-10 01:53:53 +00:00
|
|
|
error[E0277]: `MyStruct` is not an iterator
|
2018-12-25 15:56:47 +00:00
|
|
|
--> $DIR/for-loop-bogosity.rs:17:14
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
2018-10-10 01:53:53 +00:00
|
|
|
LL | for x in bogus {
|
|
|
|
| ^^^^^ `MyStruct` is not an iterator
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
2024-01-29 18:31:02 +00:00
|
|
|
= help: the trait `Iterator` is not implemented for `MyStruct`, which is required by `MyStruct: IntoIterator`
|
2022-08-15 20:31:37 +00:00
|
|
|
= note: required for `MyStruct` to implement `IntoIterator`
|
2018-08-08 12:28:26 +00:00
|
|
|
|
2023-11-21 15:44:16 +00:00
|
|
|
error: aborting due to 1 previous error
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0277`.
|