mirror of
				https://github.com/rust-lang/rust.git
				synced 2025-11-04 06:56:14 +00:00 
			
		
		
		
	This reverts commit 31fe9628cf830a08e7194a446f66c668aaea86e9, reversing changes made to f20307851ead9fbbb9fa88bbffb3258a069230a6.
		
			
				
	
	
		
			20 lines
		
	
	
		
			359 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
			
		
		
	
	
			20 lines
		
	
	
		
			359 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
//@ run-rustfix
 | 
						|
 | 
						|
struct S<T>(T);
 | 
						|
struct S2;
 | 
						|
 | 
						|
impl<T: Default> Default for S<T> {
 | 
						|
    //~^ ERROR: unexpected `impl` keyword
 | 
						|
    //~| HELP: remove the extra `impl`
 | 
						|
    fn default() -> Self { todo!() }
 | 
						|
}
 | 
						|
 | 
						|
impl Default for S2 {
 | 
						|
    //~^ ERROR: unexpected `impl` keyword
 | 
						|
    //~| HELP: remove the extra `impl`
 | 
						|
    fn default() -> Self { todo!() }
 | 
						|
}
 | 
						|
 | 
						|
 | 
						|
fn main() {}
 |