fork/rust
git clone https://git.julia.blue/fork/rust
f3e1a954d2e
1.41.1
1error[E0744]: `for` is not allowed in a `const` 2 --> $DIR/issue-50582.rs:2:20 3 | 4LL | Vec::<[(); 1 + for x in 0..1 {}]>::new(); 5 | ^^^^^^^^^^^^^^^^ 6 7error[E0277]: cannot add `()` to `{integer}` 8 --> $DIR/issue-50582.rs:2:18 9 | 10LL | Vec::<[(); 1 + for x in 0..1 {}]>::new(); 11 | ^ no implementation for `{integer} + ()` 12 | 13 = help: the trait `std::ops::Add<()>` is not implemented for `{integer}` 14 15error: aborting due to 2 previous errors 16 17Some errors have detailed explanations: E0277, E0744. 18For more information about an error, try `rustc --explain E0277`.