fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #69444 - pietroalbini:stable-next-final-v2-new, r=pietroalbinif3e1a954d2e

1.41.1
514 B16 linesraw
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`.