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