]> git.lizzy.rs Git - rust.git/blob - src/test/ui/parser/issues/issue-84117.stderr
Provide suggestion for missing `>` in a type parameter list
[rust.git] / src / test / ui / parser / issues / issue-84117.stderr
1 error: expected one of `>`, a const expression, lifetime, or type, found `}`
2   --> $DIR/issue-84117.rs:2:67
3    |
4 LL |     let outer_local:e_outer<&str, { let inner_local:e_inner<&str, }
5    |                                         -----------               ^ expected one of `>`, a const expression, lifetime, or type
6    |                                         |
7    |                                         while parsing the type for `inner_local`
8    |
9 help: you might have meant to end the type parameters here
10    |
11 LL |     let outer_local:e_outer<&str, { let inner_local:e_inner<&str>, }
12    |                                                                 +
13 help: use `=` if you meant to assign
14    |
15 LL |     let outer_local:e_outer<&str, { let inner_local =e_inner<&str, }
16    |                                                     ~
17
18 error: expected one of `!`, `.`, `::`, `;`, `?`, `else`, `{`, or an operator, found `,`
19   --> $DIR/issue-84117.rs:2:65
20    |
21 LL |     let outer_local:e_outer<&str, { let inner_local:e_inner<&str, }
22    |                                                                 ^ expected one of 8 possible tokens
23
24 error: expected one of `,`, `:`, `=`, or `>`, found `}`
25   --> $DIR/issue-84117.rs:8:1
26    |
27 LL |     let outer_local:e_outer<&str, { let inner_local:e_inner<&str, }
28    |         ----------- while parsing the type for `outer_local`       - expected one of `,`, `:`, `=`, or `>`
29 ...
30 LL | }
31    | ^ unexpected token
32    |
33 help: you might have meant to end the type parameters here
34    |
35 LL |     let outer_local:e_outer<&str, { let inner_local:e_inner<&str, }>
36    |                                                                    +
37 help: use `=` if you meant to assign
38    |
39 LL |     let outer_local =e_outer<&str, { let inner_local:e_inner<&str, }
40    |                     ~
41
42 error: expected one of `>`, a const expression, lifetime, or type, found `}`
43   --> $DIR/issue-84117.rs:2:67
44    |
45 LL |     let outer_local:e_outer<&str, { let inner_local:e_inner<&str, }
46    |                                         -----------               ^ expected one of `>`, a const expression, lifetime, or type
47    |                                         |
48    |                                         while parsing the type for `inner_local`
49    |
50 help: you might have meant to end the type parameters here
51    |
52 LL |     let outer_local:e_outer<&str, { let inner_local:e_inner<&str>, }
53    |                                                                 +
54 help: use `=` if you meant to assign
55    |
56 LL |     let outer_local:e_outer<&str, { let inner_local =e_inner<&str, }
57    |                                                     ~
58
59 error: expected one of `!`, `.`, `::`, `;`, `?`, `else`, `{`, or an operator, found `,`
60   --> $DIR/issue-84117.rs:2:65
61    |
62 LL |     let outer_local:e_outer<&str, { let inner_local:e_inner<&str, }
63    |                                                                 ^ expected one of 8 possible tokens
64
65 error: expected one of `!`, `.`, `::`, `;`, `?`, `else`, `{`, or an operator, found `,`
66   --> $DIR/issue-84117.rs:2:33
67    |
68 LL |     let outer_local:e_outer<&str, { let inner_local:e_inner<&str, }
69    |                                 ^ expected one of 8 possible tokens
70
71 error: aborting due to 6 previous errors
72