Skip to content

Commit 1b82aec

Browse files
committed
Add ui test unnessary-error-issue-138401.rs
Signed-off-by: xizheyin <[email protected]>
1 parent 99b18d6 commit 1b82aec

File tree

2 files changed

+26
-0
lines changed

2 files changed

+26
-0
lines changed
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
pub fn foo(x: i64) -> i64 {
2+
x.abs)
3+
//~^ ERROR mismatched closing delimiter
4+
}
5+
//~^ ERROR unexpected closing delimiter: `}`
6+
7+
fn main() {}
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
error: mismatched closing delimiter: `)`
2+
--> $DIR/unnessary-error-issue-138401.rs:1:27
3+
|
4+
LL | pub fn foo(x: i64) -> i64 {
5+
| ^ unclosed delimiter
6+
LL | x.abs)
7+
| ^ mismatched closing delimiter
8+
9+
error: unexpected closing delimiter: `}`
10+
--> $DIR/unnessary-error-issue-138401.rs:4:1
11+
|
12+
LL | x.abs)
13+
| - missing open `(` for this delimiter
14+
LL |
15+
LL | }
16+
| ^ unexpected closing delimiter
17+
18+
error: aborting due to 2 previous errors
19+

0 commit comments

Comments
 (0)