1 error: struct literals are not allowed here
2 --> $DIR/struct-literal-in-for.rs:12:14
10 help: surround the struct literal with parentheses
17 error[E0277]: `bool` is not an iterator
18 --> $DIR/struct-literal-in-for.rs:12:14
24 | |__________^ `bool` is not an iterator
26 = help: the trait `Iterator` is not implemented for `bool`
27 = note: required because of the requirements on the impl of `IntoIterator` for `bool`
28 note: required by `into_iter`
29 --> $SRC_DIR/core/src/iter/traits/collect.rs:LL:COL
31 LL | fn into_iter(self) -> Self::IntoIter;
32 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
34 error: aborting due to 2 previous errors
36 For more information about this error, try `rustc --explain E0277`.