mirror of
				https://github.com/rust-lang/rust.git
				synced 2025-11-03 22:49:17 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			13 lines
		
	
	
		
			226 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
			
		
		
	
	
			13 lines
		
	
	
		
			226 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
enum Bar { T1((), Option<Vec<isize>>), T2 }
 | 
						|
 | 
						|
fn foo(t: Bar) {
 | 
						|
    match t {
 | 
						|
      Bar::T1(_, Some::<isize>(x)) => { //~ ERROR mismatched types
 | 
						|
        println!("{}", x);
 | 
						|
      }
 | 
						|
      _ => { panic!(); }
 | 
						|
    }
 | 
						|
}
 | 
						|
 | 
						|
fn main() { }
 |