mirror of
				https://github.com/rust-lang/rust.git
				synced 2025-11-04 06:56:14 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			15 lines
		
	
	
		
			221 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
			
		
		
	
	
			15 lines
		
	
	
		
			221 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
struct Wrapper<T>(T);
 | 
						|
 | 
						|
trait Foo {
 | 
						|
    fn bar() -> Wrapper<impl Sized>;
 | 
						|
}
 | 
						|
 | 
						|
impl Foo for () {
 | 
						|
    fn bar() -> i32 {
 | 
						|
        //~^ ERROR method `bar` has an incompatible return type for trait
 | 
						|
        0
 | 
						|
    }
 | 
						|
}
 | 
						|
 | 
						|
fn main() {}
 |