]> git.lizzy.rs Git - rust.git/blob - src/test/ui/parser/missing-closing-angle-bracket-eq-constraint.stderr
Rollup merge of #95361 - scottmcm:valid-align, r=Mark-Simulacrum
[rust.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:25
44    |
45 LL |   let v : Vec<(u32,_) = vec![];
46    |       -                 ^^^^^^ cannot infer type for type parameter `T`
47    |       |
48    |       consider giving `v` the explicit type `Vec<T>`, where the type parameter `T` is specified
49    |
50    = note: this error originates in the macro `vec` (in Nightly builds, run with -Z macro-backtrace for more info)
51
52 error[E0282]: type annotations needed for `Vec<T>`
53   --> $DIR/missing-closing-angle-bracket-eq-constraint.rs:18:20
54    |
55 LL |   let v : Vec<'a = vec![];
56    |       -            ^^^^^^ cannot infer type for type parameter `T`
57    |       |
58    |       consider giving `v` the explicit type `Vec<T>`, where the type parameter `T` is specified
59    |
60    = note: this error originates in the macro `vec` (in Nightly builds, run with -Z macro-backtrace for more info)
61
62 error: aborting due to 5 previous errors
63
64 For more information about this error, try `rustc --explain E0282`.