]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/match/match-tag-unary.stderr
Remove E0308 note when primary label has all info
[rust.git] / src / test / ui / match / match-tag-unary.stderr
index 53b663513696626d0b3a3a09eafb8fa17dc5bd9f..db5dcd2be3b51345438f485b447903373aa2ac0f 100644 (file)
@@ -1,13 +1,10 @@
 error[E0308]: mismatched types
   --> $DIR/match-tag-unary.rs:4:43
    |
-LL | fn main() { let x: A = A::A(0); match x { B::B(y) => { } } } //~ ERROR mismatched types
+LL | fn main() { let x: A = A::A(0); match x { B::B(y) => { } } }
    |                                       -   ^^^^^^^ expected enum `A`, found enum `B`
    |                                       |
    |                                       this match expression has type `A`
-   |
-   = note: expected type `A`
-              found type `B`
 
 error: aborting due to previous error