fork/rust
git clone https://git.julia.blue/fork/rust
4560ea788cb
1.39.0
1error: struct literals are not allowed here 2 --> $DIR/struct-literal-in-for.rs:12:14 3 | 4LL | for x in Foo { 5 | ______________^ 6LL | | x: 3 7LL | | }.hi() { 8 | |_____^ 9help: surround the struct literal with parentheses 10 | 11LL | for x in (Foo { 12LL | x: 3 13LL | }).hi() { 14 | 15 16error[E0277]: `bool` is not an iterator 17 --> $DIR/struct-literal-in-for.rs:12:14 18 | 19LL | for x in Foo { 20 | ______________^ 21LL | | x: 3 22LL | | }.hi() { 23 | |__________^ `bool` is not an iterator 24 | 25 = help: the trait `std::iter::Iterator` is not implemented for `bool` 26 = note: required by `std::iter::IntoIterator::into_iter` 27 28error: aborting due to 2 previous errors 29 30For more information about this error, try `rustc --explain E0277`.