about summary refs log tree commit diff
path: root/src/test/ui/compile-fail-migration/for-loop-bogosity.stderr
blob: 0476ec06c705a21eba6af5aa01c8a40e1530db93 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
error[E0277]: the trait bound `MyStruct: std::iter::Iterator` is not satisfied
  --> $DIR/for-loop-bogosity.rs:27:14
   |
LL |     for x in bogus { //~ ERROR `MyStruct: std::iter::Iterator` is not satisfied
   |              ^^^^^ `MyStruct` is not an iterator; maybe try calling `.iter()` or a similar method
   |
   = help: the trait `std::iter::Iterator` is not implemented for `MyStruct`
   = note: required by `std::iter::IntoIterator::into_iter`

error: aborting due to previous error

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