]> git.lizzy.rs Git - rust.git/blob - src/test/ui/parser/missing-closing-angle-bracket-eq-constraint.stderr
Rollup merge of #92024 - pcwalton:per-codegen-unit-names, r=davidtwco
[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 error: expected one of `!`, `(`, `+`, `,`, `::`, `<`, or `>`, found `{`
11   --> $DIR/missing-closing-angle-bracket-eq-constraint.rs:13:32
12    |
13 LL |   let foo : Foo::<T1, T2 = Foo {_a : arg1, _b : arg2};
14    |       ---                      ^ expected one of 7 possible tokens
15    |       |
16    |       while parsing the type for `foo`
17
18 error: expected one of `,`, `:`, or `>`, found `=`
19   --> $DIR/missing-closing-angle-bracket-eq-constraint.rs:18:18
20    |
21 LL |   let v : Vec<'a = vec![];
22    |       -       -- ^ expected one of `,`, `:`, or `>`
23    |       |       |
24    |       |       maybe try to close unmatched angle bracket
25    |       while parsing the type for `v`
26
27 error[E0282]: type annotations needed for `Vec<T>`
28   --> $DIR/missing-closing-angle-bracket-eq-constraint.rs:7:25
29    |
30 LL |   let v : Vec<(u32,_) = vec![];
31    |       -                 ^^^^^^ cannot infer type for type parameter `T`
32    |       |
33    |       consider giving `v` the explicit type `Vec<T>`, where the type parameter `T` is specified
34    |
35    = note: this error originates in the macro `vec` (in Nightly builds, run with -Z macro-backtrace for more info)
36
37 error[E0282]: type annotations needed for `Vec<T>`
38   --> $DIR/missing-closing-angle-bracket-eq-constraint.rs:18:20
39    |
40 LL |   let v : Vec<'a = vec![];
41    |       -            ^^^^^^ cannot infer type for type parameter `T`
42    |       |
43    |       consider giving `v` the explicit type `Vec<T>`, where the type parameter `T` is specified
44    |
45    = note: this error originates in the macro `vec` (in Nightly builds, run with -Z macro-backtrace for more info)
46
47 error: aborting due to 5 previous errors
48
49 For more information about this error, try `rustc --explain E0282`.