diff options
| author | Michael Goulet <michael@errs.io> | 2023-08-14 21:47:23 +0000 |
|---|---|---|
| committer | Michael Goulet <michael@errs.io> | 2023-08-15 01:03:09 +0000 |
| commit | dc946649f5a813bc29e76f3879f4fc4f02cc3bab (patch) | |
| tree | d99f08487eaff3b6e801616654f1c27184dbf0cb /tests/ui/parser | |
| parent | 1b198b3a196442e14fb06978166ab46a4618d131 (diff) | |
| download | rust-dc946649f5a813bc29e76f3879f4fc4f02cc3bab.tar.gz rust-dc946649f5a813bc29e76f3879f4fc4f02cc3bab.zip | |
Clean up some bad ui testing annotations
Diffstat (limited to 'tests/ui/parser')
| -rw-r--r-- | tests/ui/parser/issues/issue-70583-block-is-empty-2.rs | 8 | ||||
| -rw-r--r-- | tests/ui/parser/issues/issue-70583-block-is-empty-2.stderr | 3 |
2 files changed, 8 insertions, 3 deletions
diff --git a/tests/ui/parser/issues/issue-70583-block-is-empty-2.rs b/tests/ui/parser/issues/issue-70583-block-is-empty-2.rs index 80f53338a68..92ff0ef643e 100644 --- a/tests/ui/parser/issues/issue-70583-block-is-empty-2.rs +++ b/tests/ui/parser/issues/issue-70583-block-is-empty-2.rs @@ -6,9 +6,13 @@ pub enum ErrorHandled { impl ErrorHandled { pub fn assert_reported(self) { match self { + //~^ NOTE this delimiter might not be properly closed... ErrorHandled::Reported => {}} - //^~ ERROR block is empty, you might have not meant to close it + //~^ NOTE block is empty, you might have not meant to close it + //~| NOTE as it matches this but it has different indentation ErrorHandled::TooGeneric => panic!(), } } -} //~ ERROR unexpected closing delimiter: `}` +} +//~^ ERROR unexpected closing delimiter: `}` +//~| NOTE unexpected closing delimiter diff --git a/tests/ui/parser/issues/issue-70583-block-is-empty-2.stderr b/tests/ui/parser/issues/issue-70583-block-is-empty-2.stderr index 9ae94c70186..c590e04bb3d 100644 --- a/tests/ui/parser/issues/issue-70583-block-is-empty-2.stderr +++ b/tests/ui/parser/issues/issue-70583-block-is-empty-2.stderr @@ -1,8 +1,9 @@ error: unexpected closing delimiter: `}` - --> $DIR/issue-70583-block-is-empty-2.rs:14:1 + --> $DIR/issue-70583-block-is-empty-2.rs:16:1 | LL | match self { | - this delimiter might not be properly closed... +LL | LL | ErrorHandled::Reported => {}} | --- ...as it matches this but it has different indentation | | |
