about summary refs log tree commit diff
path: root/tests/ui/pattern/usefulness
diff options
context:
space:
mode:
authorVadim Petrochenkov <vadim.petrochenkov@gmail.com>2025-05-03 14:10:58 +0300
committerVadim Petrochenkov <vadim.petrochenkov@gmail.com>2025-05-03 22:49:23 +0300
commit879b12e2ce3dc14ca2bc40ac1311e8f2bac19048 (patch)
tree8a5e9a79a163c834c85658b8b78f329f1b96f145 /tests/ui/pattern/usefulness
parent097cd98869cf07a2860bef16c0d4a2b3b019b23a (diff)
downloadrust-879b12e2ce3dc14ca2bc40ac1311e8f2bac19048.tar.gz
rust-879b12e2ce3dc14ca2bc40ac1311e8f2bac19048.zip
compiletest: Do not require annotations on empty labels and suggestions
Diffstat (limited to 'tests/ui/pattern/usefulness')
-rw-r--r--tests/ui/pattern/usefulness/issue-78123-non-exhaustive-reference.rs1
-rw-r--r--tests/ui/pattern/usefulness/issue-78123-non-exhaustive-reference.stderr2
2 files changed, 1 insertions, 2 deletions
diff --git a/tests/ui/pattern/usefulness/issue-78123-non-exhaustive-reference.rs b/tests/ui/pattern/usefulness/issue-78123-non-exhaustive-reference.rs
index cbfcf0eafd4..6c5a331b4b5 100644
--- a/tests/ui/pattern/usefulness/issue-78123-non-exhaustive-reference.rs
+++ b/tests/ui/pattern/usefulness/issue-78123-non-exhaustive-reference.rs
@@ -1,6 +1,5 @@
 enum A {}
     //~^ NOTE `A` defined here
-    //~| NOTE
 
 fn f(a: &A) {
     match a {}
diff --git a/tests/ui/pattern/usefulness/issue-78123-non-exhaustive-reference.stderr b/tests/ui/pattern/usefulness/issue-78123-non-exhaustive-reference.stderr
index c37a9a51579..67ee38eed60 100644
--- a/tests/ui/pattern/usefulness/issue-78123-non-exhaustive-reference.stderr
+++ b/tests/ui/pattern/usefulness/issue-78123-non-exhaustive-reference.stderr
@@ -1,5 +1,5 @@
 error[E0004]: non-exhaustive patterns: type `&A` is non-empty
-  --> $DIR/issue-78123-non-exhaustive-reference.rs:6:11
+  --> $DIR/issue-78123-non-exhaustive-reference.rs:5:11
    |
 LL |     match a {}
    |           ^