@@ -6,14 +6,56 @@ LL | let sr: Vec<(u32, _, _) = vec![];
66 | |
77 | while parsing the type for `sr`
88
9- error[E0277]: a value of type `Vec<(u32, _, _)>` cannot be built from an iterator over elements of type `()`
10- --> $DIR/issue-34334.rs:4:87
9+ error[E0423]: expected value, found struct `Vec`
10+ --> $DIR/issue-34334.rs:2:13
11+ |
12+ LL | let sr: Vec<(u32, _, _) = vec![];
13+ | ^^^ did you mean `Vec { /* fields */ }`?
14+
15+ error[E0423]: expected value, found builtin type `u32`
16+ --> $DIR/issue-34334.rs:2:18
17+ |
18+ LL | let sr: Vec<(u32, _, _) = vec![];
19+ | ^^^ not a value
20+
21+ error: expected expression, found reserved identifier `_`
22+ --> $DIR/issue-34334.rs:2:23
23+ |
24+ LL | let sr: Vec<(u32, _, _) = vec![];
25+ | ^ expected expression
26+
27+ error: expected expression, found reserved identifier `_`
28+ --> $DIR/issue-34334.rs:2:26
29+ |
30+ LL | let sr: Vec<(u32, _, _) = vec![];
31+ | ^ expected expression
32+
33+ error[E0308]: mismatched types
34+ --> $DIR/issue-34334.rs:2:31
35+ |
36+ LL | let sr: Vec<(u32, _, _) = vec![];
37+ | ^^^^^^ expected `bool`, found struct `std::vec::Vec`
38+ |
39+ = note: expected type `bool`
40+ found struct `std::vec::Vec<_>`
41+ = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
42+
43+ error[E0070]: invalid left-hand side of assignment
44+ --> $DIR/issue-34334.rs:2:29
45+ |
46+ LL | let sr: Vec<(u32, _, _) = vec![];
47+ | --------------- ^
48+ | |
49+ | cannot assign to this expression
50+
51+ error[E0599]: no method named `iter` found for unit type `()` in the current scope
52+ --> $DIR/issue-34334.rs:10:36
1153 |
1254LL | let sr2: Vec<(u32, _, _)> = sr.iter().map(|(faction, th_sender, th_receiver)| {}).collect();
1355 | ^^^^^^^ value of type `Vec<(u32, _, _)>` cannot be built from `std::iter::Iterator<Item=()>`
1456 |
1557 = help: the trait `FromIterator<()>` is not implemented for `Vec<(u32, _, _)>`
1658
17- error: aborting due to 2 previous errors
59+ error: aborting due to 8 previous errors
1860
1961For more information about this error, try `rustc --explain E0277`.
0 commit comments