mirror of
				https://github.com/rust-lang/rust.git
				synced 2025-11-03 22:49:17 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			12 lines
		
	
	
		
			278 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
			
		
		
	
	
			12 lines
		
	
	
		
			278 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
// aux-build:struct_variant_privacy.rs
 | 
						|
extern crate struct_variant_privacy;
 | 
						|
 | 
						|
fn f(b: struct_variant_privacy::Bar) {
 | 
						|
    //~^ ERROR enum `Bar` is private
 | 
						|
    match b {
 | 
						|
        struct_variant_privacy::Bar::Baz { a: _a } => {} //~ ERROR enum `Bar` is private
 | 
						|
    }
 | 
						|
}
 | 
						|
 | 
						|
fn main() {}
 |