rust/tests/ui/issues/issue-50585.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

16 lines
514 B
Plaintext
Raw Permalink Normal View History

error[E0308]: mismatched types
2018-12-25 15:56:47 +00:00
--> $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 */]>| {};
| +++++++++++++++++++
2024-11-22 02:31:42 +00:00
error: aborting due to 1 previous error
2024-11-22 02:31:42 +00:00
For more information about this error, try `rustc --explain E0308`.