mirror of
				https://github.com/rust-lang/rust.git
				synced 2025-10-31 13:04:42 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			14 lines
		
	
	
		
			210 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
			
		
		
	
	
			14 lines
		
	
	
		
			210 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
| fn main() {
 | |
|     let buf = &[0, 1, 2, 3];
 | |
| 
 | |
|     match buf { //~ ERROR non-exhaustive
 | |
|         b"AAAA" => {}
 | |
|     }
 | |
| 
 | |
|     let buf: &[u8] = buf;
 | |
| 
 | |
|     match buf { //~ ERROR non-exhaustive
 | |
|         b"AAAA" => {}
 | |
|     }
 | |
| }
 | 
