fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0658]: `for` is not allowed in a `const` 2 --> $DIR/issue-50582.rs:2:20 3 | 4LL | Vec::<[(); 1 + for x in 0..1 {}]>::new(); 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[E0277]: cannot add `()` to `{integer}` 11 --> $DIR/issue-50582.rs:2:18 12 | 13LL | Vec::<[(); 1 + for x in 0..1 {}]>::new(); 14 | ^ no implementation for `{integer} + ()` 15 | 16 = help: the trait `Add<()>` is not implemented for `{integer}` 17 = help: the following other types implement trait `Add<Rhs>`: 18 <isize as Add> 19 <isize as Add<&isize>> 20 <i8 as Add> 21 <i8 as Add<&i8>> 22 <i16 as Add> 23 <i16 as Add<&i16>> 24 <i32 as Add> 25 <i32 as Add<&i32>> 26 and 48 others 27 28error: aborting due to 2 previous errors 29 30Some errors have detailed explanations: E0277, E0658. 31For more information about an error, try `rustc --explain E0277`.