mirror of
				https://github.com/rust-lang/rust.git
				synced 2025-11-04 06:56:14 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			9 lines
		
	
	
		
			204 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
			
		
		
	
	
			9 lines
		
	
	
		
			204 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
const F: &'static dyn PartialEq<u32> = &7u32;
 | 
						|
 | 
						|
fn main() {
 | 
						|
    let a: &dyn PartialEq<u32> = &7u32;
 | 
						|
    match a {
 | 
						|
        F => panic!(), //~ ERROR: `&dyn PartialEq<u32>` cannot be used in patterns
 | 
						|
    }
 | 
						|
}
 |