Skip to content

Commit 4b70360

Browse files
committed
Add ui test tests/ui/parser/issues/unnessary-error-issue-138401.rs
Signed-off-by: xizheyin <[email protected]>
1 parent 1bc5618 commit 4b70360

File tree

2 files changed

+22
-0
lines changed

2 files changed

+22
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
pub fn foo(x: i64) -> i64 {
2+
x.abs) //~ ERROR mismatched closing delimiter
3+
} //~ ERROR unexpected closing delimiter: `}`
4+
fn main() {}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
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:3:1
11+
|
12+
LL | x.abs)
13+
| - missing open `(` for this delimiter
14+
LL | }
15+
| ^ unexpected closing delimiter
16+
17+
error: aborting due to 2 previous errors
18+

0 commit comments

Comments
 (0)