1 error[E0658]: `for` is not allowed in a `const`
2 --> $DIR/issue-50585.rs:2:18
4 LL | |y: Vec<[(); for x in 0..2 {}]>| {};
7 = note: see issue #87575 <https://github.com/rust-lang/rust/issues/87575> for more information
8 = help: add `#![feature(const_for)]` to the crate attributes to enable
10 error[E0308]: mismatched types
11 --> $DIR/issue-50585.rs:2:18
13 LL | |y: Vec<[(); for x in 0..2 {}]>| {};
14 | ^^^^^^^^^^^^^^^^ expected `usize`, found `()`
16 error: aborting due to 2 previous errors
18 Some errors have detailed explanations: E0308, E0658.
19 For more information about an error, try `rustc --explain E0308`.