-
Notifications
You must be signed in to change notification settings - Fork 13.6k
Closed
Labels
A-diagnosticsArea: Messages for errors, warnings, and lintsArea: Messages for errors, warnings, and lintsA-type-systemArea: Type systemArea: Type system
Description
STR
fn main() {
(0..8).map(|i| i == 1u64).collect::<Vec<_>>();
//~^ error: the type of this value must be known in this context
(0..8).map(|i| 1u64 == i).collect::<Vec<_>>();
//~^ error: type mismatch resolving `<core::ops::Range<i32> as core::iter::Iterator>::Item == u64`
range(0, 8).map(|i| i == 1u64).collect::<Vec<_>>(); // OK
range(0, 8).map(|i| 1u64 == i).collect::<Vec<_>>(); // OK
}
Version
rustc 1.0.0-nightly (458a6a2f6 2015-01-25 21:20:37 +0000)
cc @nick29581
Metadata
Metadata
Assignees
Labels
A-diagnosticsArea: Messages for errors, warnings, and lintsArea: Messages for errors, warnings, and lintsA-type-systemArea: Type systemArea: Type system