]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/pattern/usefulness/non-exhaustive-match.rs
Rollup merge of #80298 - PankajChaudhary5:PankajChaudhary, r=GuillaumeGomez
[rust.git] / src / test / ui / pattern / usefulness / non-exhaustive-match.rs
index a28cfb579f4f1771af1e8ae356162504af8b909f..4ff12aa2ff5e23d8d7bd98604bd1ba7d75e93c1d 100644 (file)
@@ -15,7 +15,7 @@ fn main() {
                       //  and `(_, _, 5_i32..=i32::MAX)` not covered
       (_, _, 4) => {}
     }
-    match (T::A, T::A) { //~ ERROR non-exhaustive patterns: `(A, A)` not covered
+    match (T::A, T::A) { //~ ERROR non-exhaustive patterns: `(A, A)` and `(B, B)` not covered
       (T::A, T::B) => {}
       (T::B, T::A) => {}
     }