diff options
Diffstat (limited to 'gcc/testsuite/rust/compile/exhaustiveness1.rs')
-rw-r--r-- | gcc/testsuite/rust/compile/exhaustiveness1.rs | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/gcc/testsuite/rust/compile/exhaustiveness1.rs b/gcc/testsuite/rust/compile/exhaustiveness1.rs index fe95ea3..356636b 100644 --- a/gcc/testsuite/rust/compile/exhaustiveness1.rs +++ b/gcc/testsuite/rust/compile/exhaustiveness1.rs @@ -15,9 +15,7 @@ fn s2(s: S) { } fn s3(s: S) { - match s { - // { dg-error "non-exhaustive patterns: '_' not covered" "" { target *-*-* } .-1 } - } + match s {} } enum E { |