summaryrefslogtreecommitdiffstats
path: root/tests/ui/inline-const/const-match-pat-generic.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/inline-const/const-match-pat-generic.rs')
-rw-r--r--tests/ui/inline-const/const-match-pat-generic.rs2
1 files changed, 0 insertions, 2 deletions
diff --git a/tests/ui/inline-const/const-match-pat-generic.rs b/tests/ui/inline-const/const-match-pat-generic.rs
index 7c0d83516..46e501abf 100644
--- a/tests/ui/inline-const/const-match-pat-generic.rs
+++ b/tests/ui/inline-const/const-match-pat-generic.rs
@@ -7,7 +7,6 @@ fn foo<const V: usize>() {
match 0 {
const { V } => {},
//~^ ERROR constant pattern depends on a generic parameter
- //~| ERROR constant pattern depends on a generic parameter
_ => {},
}
}
@@ -20,7 +19,6 @@ fn bar<const V: usize>() {
match 0 {
const { f(V) } => {},
//~^ ERROR constant pattern depends on a generic parameter
- //~| ERROR constant pattern depends on a generic parameter
_ => {},
}
}