]> git.lizzy.rs Git - rust.git/blob - src/test/ui/for/for-loop-bogosity.stderr
Rollup merge of #100479 - compiler-errors:argument-type-error-improvements, r=lcnr
[rust.git] / src / test / ui / for / for-loop-bogosity.stderr
1 error[E0277]: `MyStruct` is not an iterator
2   --> $DIR/for-loop-bogosity.rs:17:14
3    |
4 LL |     for x in bogus {
5    |              ^^^^^ `MyStruct` is not an iterator
6    |
7    = help: the trait `Iterator` is not implemented for `MyStruct`
8    = note: required because of the requirements on the impl of `IntoIterator` for `MyStruct`
9
10 error: aborting due to previous error
11
12 For more information about this error, try `rustc --explain E0277`.