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