diff options
author | yukang <moorekang@gmail.com> | 2023-02-28 07:56:34 +0000 |
---|---|---|
committer | yukang <moorekang@gmail.com> | 2023-02-28 07:57:17 +0000 |
commit | 65ad5f8de72c6994b6d2059bf5622af48de3afe4 (patch) | |
tree | 08dce6410866888fb6c5c5e9d6bb612a5777cc76 /tests/ui/parser/issues/issue-67377-invalid-syntax-in-enum-discriminant.stderr | |
parent | f01d0c02e7fccc866c3adb7b95e96ec9b4974a37 (diff) | |
download | rust-65ad5f8de72c6994b6d2059bf5622af48de3afe4.tar.gz |
remove duplicated diagnostic for unclosed delimiter
Diffstat (limited to 'tests/ui/parser/issues/issue-67377-invalid-syntax-in-enum-discriminant.stderr')
-rw-r--r-- | tests/ui/parser/issues/issue-67377-invalid-syntax-in-enum-discriminant.stderr | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/tests/ui/parser/issues/issue-67377-invalid-syntax-in-enum-discriminant.stderr b/tests/ui/parser/issues/issue-67377-invalid-syntax-in-enum-discriminant.stderr index dc6af1ed568..9f631edf680 100644 --- a/tests/ui/parser/issues/issue-67377-invalid-syntax-in-enum-discriminant.stderr +++ b/tests/ui/parser/issues/issue-67377-invalid-syntax-in-enum-discriminant.stderr @@ -1,21 +1,3 @@ -error: this file contains an unclosed delimiter - --> $DIR/issue-67377-invalid-syntax-in-enum-discriminant.rs:23:65 - | -LL | V = [PhantomData; { [ () ].len() ].len() as isize, - | - missing open `[` for this delimiter -... -LL | V = [Vec::new; { [].len() ].len() as isize, - | - missing open `[` for this delimiter -... -LL | mod c { - | - unclosed delimiter -LL | enum Bug { -LL | V = [Vec::new; { [0].len() ].len() as isize, - | - missing open `[` for this delimiter -... -LL | fn main() {} - | ^ - error: mismatched closing delimiter: `]` --> $DIR/issue-67377-invalid-syntax-in-enum-discriminant.rs:5:27 | @@ -43,5 +25,23 @@ LL | V = [Vec::new; { [0].len() ].len() as isize, | | unclosed delimiter | closing delimiter possibly meant for this +error: this file contains an unclosed delimiter + --> $DIR/issue-67377-invalid-syntax-in-enum-discriminant.rs:23:65 + | +LL | V = [PhantomData; { [ () ].len() ].len() as isize, + | - missing open `[` for this delimiter +... +LL | V = [Vec::new; { [].len() ].len() as isize, + | - missing open `[` for this delimiter +... +LL | mod c { + | - unclosed delimiter +LL | enum Bug { +LL | V = [Vec::new; { [0].len() ].len() as isize, + | - missing open `[` for this delimiter +... +LL | fn main() {} + | ^ + error: aborting due to 4 previous errors |