mirror of
				https://github.com/rust-lang/rust.git
				synced 2025-10-31 13:04:42 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			16 lines
		
	
	
		
			294 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
			
		
		
	
	
			16 lines
		
	
	
		
			294 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
| // Regression test for issue #101980.
 | |
| // Ensure that we don't suggest impl'ing `Copy` for a type if it already impl's `!Copy`.
 | |
| 
 | |
| //@ check-pass
 | |
| 
 | |
| #![feature(negative_impls)]
 | |
| #![deny(missing_copy_implementations)]
 | |
| 
 | |
| pub struct Struct {
 | |
|     pub field: i32,
 | |
| }
 | |
| 
 | |
| impl !Copy for Struct {}
 | |
| 
 | |
| fn main() {}
 | 
