We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0d11be5 commit 229be21Copy full SHA for 229be21
tests/ui/parser/issues/unnessary-error-issue-138401.rs
@@ -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() {}
tests/ui/parser/issues/unnessary-error-issue-138401.stderr
@@ -0,0 +1,19 @@
+error: mismatched closing delimiter: `)`
+ --> $DIR/unnessary-error-issue-138401.rs:1:27
+ |
+LL | pub fn foo(x: i64) -> i64 {
+ | ^ unclosed delimiter
+LL | x.abs)
+ | ^ mismatched closing delimiter
8
9
+error: unexpected closing delimiter: `}`
10
+ --> $DIR/unnessary-error-issue-138401.rs:4:1
11
12
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