]> git.proxmox.com Git - rustc.git/blobdiff - src/test/compile-fail/struct-variant-privacy.rs
Imported Upstream version 1.9.0+dfsg1
[rustc.git] / src / test / compile-fail / struct-variant-privacy.rs
index f36862364e734c8e72aedbd9674d0ec705573746..7de4ca62555a24ad6e66b702ac27789fc193ebef 100644 (file)
@@ -15,8 +15,7 @@ mod foo {
 
 fn f(b: foo::Bar) { //~ ERROR enum `Bar` is private
     match b {
-        foo::Bar::Baz { a: _a } => {} //~ ERROR variant `Baz` is inaccessible
-        // ^~ ERROR enum `Bar` is private
+        foo::Bar::Baz { a: _a } => {} //~ ERROR enum `Bar` is private
     }
 }