about summary refs log tree commit diff
path: root/tests/ui/issues/issue-50585.stderr
blob: 7e83ea35fbbdacebe32b13cd2fae1ec4528b4c6f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
error[E0308]: mismatched types
  --> $DIR/issue-50585.rs:2:18
   |
LL |     |y: Vec<[(); for x in 0..2 {}]>| {};
   |                  ^^^^^^^^^^^^^^^^ expected `usize`, found `()`
   |
   = note: `for` loops evaluate to unit type `()`
help: consider returning a value here
   |
LL |     |y: Vec<[(); for x in 0..2 {} /* `usize` value */]>| {};
   |                                   +++++++++++++++++++

error: aborting due to 1 previous error

For more information about this error, try `rustc --explain E0308`.