]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-34334.stderr
Rollup merge of #59556 - RalfJung:stdsimd, r=gnzlbg
[rust.git] / src / test / ui / issues / issue-34334.stderr
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 one of `,` or `>`, found `=`
8   --> $DIR/issue-34334.rs:2:29
9    |
10 LL |     let sr: Vec<(u32, _, _) = vec![];
11    |         ---                 ^ expected one of `,` or `>` here
12    |         | |
13    |         | help: use `=` if you meant to assign
14    |         while parsing the type for `sr`
15
16 error[E0423]: expected value, found struct `Vec`
17   --> $DIR/issue-34334.rs:2:13
18    |
19 LL |     let sr: Vec<(u32, _, _) = vec![];
20    |             ^^^ did you mean `Vec { /* fields */ }`?
21
22 error[E0308]: mismatched types
23   --> $DIR/issue-34334.rs:2:31
24    |
25 LL |     let sr: Vec<(u32, _, _) = vec![];
26    |                               ^^^^^^ expected bool, found struct `std::vec::Vec`
27    |
28    = note: expected type `bool`
29               found type `std::vec::Vec<_>`
30    = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)
31
32 error[E0070]: invalid left-hand side expression
33   --> $DIR/issue-34334.rs:2:13
34    |
35 LL |     let sr: Vec<(u32, _, _) = vec![];
36    |             ^^^^^^^^^^^^^^^^^^^^^^^^ left-hand of expression not valid
37
38 error[E0599]: no method named `iter` found for type `()` in the current scope
39   --> $DIR/issue-34334.rs:8:36
40    |
41 LL |     let sr2: Vec<(u32, _, _)> = sr.iter().map(|(faction, th_sender, th_receiver)| {}).collect();
42    |                                    ^^^^
43
44 error: aborting due to 6 previous errors
45
46 Some errors occurred: E0070, E0308, E0423, E0599.
47 For more information about an error, try `rustc --explain E0070`.