]> git.lizzy.rs Git - rust.git/blob - src/test/ui/structs/struct-variant-privacy-xc.rs
Override rustc version in ui and mir-opt tests to get stable hashes
[rust.git] / src / test / ui / structs / struct-variant-privacy-xc.rs
1 // aux-build:struct_variant_privacy.rs
2 extern crate struct_variant_privacy;
3
4 fn f(b: struct_variant_privacy::Bar) {
5     //~^ ERROR enum `Bar` is private
6     match b {
7         struct_variant_privacy::Bar::Baz { a: _a } => {} //~ ERROR enum `Bar` is private
8     }
9 }
10
11 fn main() {}