]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-50585.stderr
Merge commit 'c19edfd71a1d0ddef86c2c67fdb40718d40a72b4' into sync_cg_clif-2022-07-25
[rust.git] / src / test / ui / issues / issue-50585.stderr
1 error[E0658]: `for` is not allowed in a `const`
2   --> $DIR/issue-50585.rs:2:18
3    |
4 LL |     |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
10 error[E0308]: mismatched types
11   --> $DIR/issue-50585.rs:2:18
12    |
13 LL |     |y: Vec<[(); for x in 0..2 {}]>| {};
14    |                  ^^^^^^^^^^^^^^^^ expected `usize`, found `()`
15
16 error: aborting due to 2 previous errors
17
18 Some errors have detailed explanations: E0308, E0658.
19 For more information about an error, try `rustc --explain E0308`.