]> git.proxmox.com Git - rustc.git/blob - src/test/ui/issues/issue-50582.stderr
New upstream version 1.60.0+dfsg1
[rustc.git] / src / test / ui / issues / issue-50582.stderr
1 error[E0658]: `for` is not allowed in a `const`
2 --> $DIR/issue-50582.rs:2:20
3 |
4 LL | 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
10 error[E0277]: cannot add `()` to `{integer}`
11 --> $DIR/issue-50582.rs:2:18
12 |
13 LL | 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
18 error: aborting due to 2 previous errors
19
20 Some errors have detailed explanations: E0277, E0658.
21 For more information about an error, try `rustc --explain E0277`.