fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0658]: `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 | 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 9 10error[E0308]: mismatched types 11 --> $DIR/issue-50585.rs:2:18 12 | 13LL | |y: Vec<[(); for x in 0..2 {}]>| {}; 14 | ^^^^^^^^^^^^^^^^ expected `usize`, found `()` 15 16error: aborting due to 2 previous errors 17 18Some errors have detailed explanations: E0308, E0658. 19For more information about an error, try `rustc --explain E0308`.