]> git.lizzy.rs Git - rust.git/blobdiff - src/test/compile-fail/E0451.rs
Fix the fallout
[rust.git] / src / test / compile-fail / E0451.rs
index f7b106d160dae78d1c0fdc87997a8314d639fbbf..ace96c9983e66612097228f6a949778e797cf0f0 100644 (file)
@@ -25,11 +25,6 @@ fn pat_match(foo: Bar::Foo) {
                                   //~^ NOTE field `b` is private
 }
 
-fn pat_match_tuple(foo: Bar::FooTuple) {
-    let Bar::FooTuple(a,b) = foo; //~ ERROR E0451
-                                  //~^ NOTE field `1` is private
-}
-
 fn main() {
     let f = Bar::Foo{ a: 0, b: 0 }; //~ ERROR E0451
                                     //~^ NOTE field `b` is private