2018-06-21 20:18:39 -05:00
|
|
|
error[E0308]: mismatched types
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/issue-50585.rs:2:18
|
2018-06-21 20:18:39 -05:00
|
|
|
|
|
|
|
|
LL | |y: Vec<[(); for x in 0..2 {}]>| {};
|
|
|
|
| ^^^^^^^^^^^^^^^^ expected usize, found ()
|
|
|
|
|
|
|
|
|
= note: expected type `usize`
|
|
|
|
found type `()`
|
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0308`.
|