]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/match/match-struct.rs
Remove E0308 note when primary label has all info
[rust.git] / src / test / ui / match / match-struct.rs
index 0dbdda1f9ba1e120f7d227b7142d8b9151c91112..7a54c54b98cb85c2762a4d1402797863db58159c 100644 (file)
@@ -1,14 +1,3 @@
-// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
-// file at the top-level directory of this distribution and at
-// http://rust-lang.org/COPYRIGHT.
-//
-// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
-// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
-// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
-// option. This file may not be copied, modified, or distributed
-// except according to those terms.
-
-
 struct S { a: isize }
 enum E { C(isize) }
 
@@ -16,8 +5,6 @@ fn main() {
     match (S { a: 1 }) {
         E::C(_) => (),
         //~^ ERROR mismatched types
-        //~| expected type `S`
-        //~| found type `E`
         //~| expected struct `S`, found enum `E`
         _ => ()
     }