]> git.proxmox.com Git - rustc.git/blob - src/test/ui/parser/missing-closing-angle-bracket-eq-constraint.stderr
New upstream version 1.63.0+dfsg1
[rustc.git] / src / test / ui / parser / missing-closing-angle-bracket-eq-constraint.stderr
1 error: expected one of `,`, `:`, or `>`, found `=`
2 --> $DIR/missing-closing-angle-bracket-eq-constraint.rs:7:23
3 |
4 LL | 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 |
10 help: you might have meant to end the type parameters here
11 |
12 LL | let v : Vec<(u32,_)> = vec![];
13 | +
14
15 error: expected one of `!`, `(`, `+`, `,`, `::`, `<`, or `>`, found `{`
16 --> $DIR/missing-closing-angle-bracket-eq-constraint.rs:13:32
17 |
18 LL | 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 |
23 help: you might have meant to end the type parameters here
24 |
25 LL | let foo : Foo::<T1>, T2 = Foo {_a : arg1, _b : arg2};
26 | +
27
28 error: expected one of `,`, `:`, or `>`, found `=`
29 --> $DIR/missing-closing-angle-bracket-eq-constraint.rs:18:18
30 |
31 LL | 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 |
37 help: you might have meant to end the type parameters here
38 |
39 LL | let v : Vec<'a> = vec![];
40 | +
41
42 error[E0282]: type annotations needed for `Vec<T>`
43 --> $DIR/missing-closing-angle-bracket-eq-constraint.rs:7:7
44 |
45 LL | let v : Vec<(u32,_) = vec![];
46 | ^
47 |
48 help: consider giving `v` an explicit type, where the type for type parameter `T` is specified
49 |
50 LL | let v: Vec<T> : Vec<(u32,_) = vec![];
51 | ++++++++
52
53 error[E0282]: type annotations needed for `Vec<T>`
54 --> $DIR/missing-closing-angle-bracket-eq-constraint.rs:18:7
55 |
56 LL | let v : Vec<'a = vec![];
57 | ^
58 |
59 help: consider giving `v` an explicit type, where the type for type parameter `T` is specified
60 |
61 LL | let v: Vec<T> : Vec<'a = vec![];
62 | ++++++++
63
64 error: aborting due to 5 previous errors
65
66 For more information about this error, try `rustc --explain E0282`.