]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-50585.stderr
Remove E0308 note when primary label has all info
[rust.git] / src / test / ui / issues / issue-50585.stderr
1 error[E0744]: `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 error[E0308]: mismatched types
8   --> $DIR/issue-50585.rs:2:18
9    |
10 LL |     |y: Vec<[(); for x in 0..2 {}]>| {};
11    |                  ^^^^^^^^^^^^^^^^ expected usize, found ()
12
13 error: aborting due to 2 previous errors
14
15 Some errors have detailed explanations: E0308, E0744.
16 For more information about an error, try `rustc --explain E0308`.