fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
2.1 KiB66 linesraw
1error: expected one of `,`, `:`, or `>`, found `=`
2  --> $DIR/missing-closing-angle-bracket-eq-constraint.rs:7:23
3   |
4LL |   let v : Vec<(u32,_) = vec![];
5   |       -             - ^ expected one of `,`, `:`, or `>`
6   |       |             |
7   |       |             maybe try to close unmatched angle bracket
8   |       while parsing the type for `v`
9   |
10help: you might have meant to end the type parameters here
11   |
12LL |   let v : Vec<(u32,_)> = vec![];
13   |                      +
14
15error: expected one of `!`, `(`, `+`, `,`, `::`, `<`, or `>`, found `{`
16  --> $DIR/missing-closing-angle-bracket-eq-constraint.rs:13:32
17   |
18LL |   let foo : Foo::<T1, T2 = Foo {_a : arg1, _b : arg2};
19   |       ---                      ^ expected one of 7 possible tokens
20   |       |
21   |       while parsing the type for `foo`
22   |
23help: you might have meant to end the type parameters here
24   |
25LL |   let foo : Foo::<T1>, T2 = Foo {_a : arg1, _b : arg2};
26   |                     +
27
28error: expected one of `,`, `:`, or `>`, found `=`
29  --> $DIR/missing-closing-angle-bracket-eq-constraint.rs:18:18
30   |
31LL |   let v : Vec<'a = vec![];
32   |       -       -- ^ expected one of `,`, `:`, or `>`
33   |       |       |
34   |       |       maybe try to close unmatched angle bracket
35   |       while parsing the type for `v`
36   |
37help: you might have meant to end the type parameters here
38   |
39LL |   let v : Vec<'a> = vec![];
40   |                 +
41
42error[E0282]: type annotations needed for `Vec<_>`
43  --> $DIR/missing-closing-angle-bracket-eq-constraint.rs:7:7
44   |
45LL |   let v : Vec<(u32,_) = vec![];
46   |       ^
47   |
48help: consider giving `v` an explicit type, where the placeholders `_` are specified
49   |
50LL |   let v: Vec<_> : Vec<(u32,_) = vec![];
51   |        ++++++++
52
53error[E0282]: type annotations needed for `Vec<_>`
54  --> $DIR/missing-closing-angle-bracket-eq-constraint.rs:18:7
55   |
56LL |   let v : Vec<'a = vec![];
57   |       ^
58   |
59help: consider giving `v` an explicit type, where the placeholders `_` are specified
60   |
61LL |   let v: Vec<_> : Vec<'a = vec![];
62   |        ++++++++
63
64error: aborting due to 5 previous errors
65
66For more information about this error, try `rustc --explain E0282`.