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