]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/pattern/pattern-error-continue.rs
Remove E0308 note when primary label has all info
[rust.git] / src / test / ui / pattern / pattern-error-continue.rs
index 7e79868f874d9388b853f4706bed2d2021bdc161..eb57210f45474c31d8d2ab4fd4e7d0ff40d2b310 100644 (file)
@@ -15,14 +15,12 @@ fn f(_c: char) {}
 fn main() {
     match A::B(1, 2) {
         A::B(_, _, _) => (), //~ ERROR this pattern has 3 fields, but
-        A::D(_) => (),       //~ ERROR expected tuple struct/variant, found unit variant `A::D`
+        A::D(_) => (), //~ ERROR expected tuple struct or tuple variant, found unit variant `A::D`
         _ => ()
     }
     match 'c' {
         S { .. } => (),
         //~^ ERROR mismatched types
-        //~| expected type `char`
-        //~| found type `S`
         //~| expected char, found struct `S`
 
         _ => ()