Skip to content

Commit 4dfaa78

Browse files
committed
add test
1 parent dd54459 commit 4dfaa78

File tree

2 files changed

+58
-0
lines changed

2 files changed

+58
-0
lines changed

Diff for: src/test/ui/parser/issue-84117.rs

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
fn main() {
2+
let outer_local:e_outer<&str, { let inner_local:e_inner<&str, }
3+
//~^ ERROR expected one of `>`, a const expression
4+
//~| ERROR expected one of `>`, a const expression, lifetime, or type, found `}`
5+
//~| ERROR expected one of `!`, `.`, `::`, `;`, `?`, `{`, or an operator, found `,`
6+
//~| ERROR expected one of `!`, `.`, `::`, `;`, `?`, `{`, or an operator, found `,`
7+
//~| ERROR expected one of `!`, `.`, `::`, `;`, `?`, `{`, or an operator, found `,`
8+
}
9+
//~^ ERROR expected one of `,`, `:`, `=`, or `>`, found `}`

Diff for: src/test/ui/parser/issue-84117.stderr

+49
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
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+
| | help: use `=` if you meant to assign
8+
| while parsing the type for `inner_local`
9+
10+
error: expected one of `!`, `.`, `::`, `;`, `?`, `{`, or an operator, found `,`
11+
--> $DIR/issue-84117.rs:2:65
12+
|
13+
LL | let outer_local:e_outer<&str, { let inner_local:e_inner<&str, }
14+
| ^ expected one of 7 possible tokens
15+
16+
error: expected one of `,`, `:`, `=`, or `>`, found `}`
17+
--> $DIR/issue-84117.rs:8:1
18+
|
19+
LL | let outer_local:e_outer<&str, { let inner_local:e_inner<&str, }
20+
| ------------ help: use `=` if you meant to assign - expected one of `,`, `:`, `=`, or `>`
21+
| |
22+
| while parsing the type for `outer_local`
23+
...
24+
LL | }
25+
| ^ unexpected token
26+
27+
error: expected one of `>`, a const expression, lifetime, or type, found `}`
28+
--> $DIR/issue-84117.rs:2:67
29+
|
30+
LL | let outer_local:e_outer<&str, { let inner_local:e_inner<&str, }
31+
| ------------ ^ expected one of `>`, a const expression, lifetime, or type
32+
| | |
33+
| | help: use `=` if you meant to assign
34+
| while parsing the type for `inner_local`
35+
36+
error: expected one of `!`, `.`, `::`, `;`, `?`, `{`, or an operator, found `,`
37+
--> $DIR/issue-84117.rs:2:65
38+
|
39+
LL | let outer_local:e_outer<&str, { let inner_local:e_inner<&str, }
40+
| ^ expected one of 7 possible tokens
41+
42+
error: expected one of `!`, `.`, `::`, `;`, `?`, `{`, or an operator, found `,`
43+
--> $DIR/issue-84117.rs:2:33
44+
|
45+
LL | let outer_local:e_outer<&str, { let inner_local:e_inner<&str, }
46+
| ^ expected one of 7 possible tokens
47+
48+
error: aborting due to 6 previous errors
49+

0 commit comments

Comments
 (0)