Skip to content

Commit c4262bd

Browse files
committed
Reduce test case
1 parent 048ae29 commit c4262bd

File tree

2 files changed

+4
-18
lines changed

2 files changed

+4
-18
lines changed

src/test/ui/issues/issue-58856-1.rs

+1-7
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,6 @@
1-
struct A;
2-
31
impl A {
4-
fn b(self> {}
2+
fn b(self>
53
//~^ ERROR expected one of `)`, `,`, or `:`, found `>`
64
}
75

8-
// verify that mismatched delimiters get emitted
9-
fn foo(] {}
10-
//~^ ERROR incorrect close delimiter
11-
126
fn main() {}
+3-11
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,11 @@
11
error: expected one of `)`, `,`, or `:`, found `>`
2-
--> $DIR/issue-58856-1.rs:4:14
2+
--> $DIR/issue-58856-1.rs:2:14
33
|
4-
LL | fn b(self> {}
4+
LL | fn b(self>
55
| - ^
66
| | |
77
| | help: `)` may belong here
88
| unclosed delimiter
99

10-
error: incorrect close delimiter: `]`
11-
--> $DIR/issue-58856-1.rs:9:8
12-
|
13-
LL | fn foo(] {}
14-
| -^ incorrect close delimiter
15-
| |
16-
| un-closed delimiter
17-
18-
error: aborting due to 2 previous errors
10+
error: aborting due to previous error
1911

0 commit comments

Comments
 (0)