1 error[E0744]: `for` is not allowed in a `const`
2 --> $DIR/issue-50585.rs:2:18
4 LL | |y: Vec<[(); for x in 0..2 {}]>| {};
7 error[E0308]: mismatched types
8 --> $DIR/issue-50585.rs:2:18
10 LL | |y: Vec<[(); for x in 0..2 {}]>| {};
11 | ^^^^^^^^^^^^^^^^ expected usize, found ()
13 error: aborting due to 2 previous errors
15 Some errors have detailed explanations: E0308, E0744.
16 For more information about an error, try `rustc --explain E0308`.