mirror of
				https://github.com/rust-lang/rust.git
				synced 2025-11-04 06:56:14 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			17 lines
		
	
	
		
			224 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
			
		
		
	
	
			17 lines
		
	
	
		
			224 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
//@ check-pass
 | 
						|
 | 
						|
pub struct Wrapper<T>(T);
 | 
						|
 | 
						|
pub trait Foo {
 | 
						|
    fn bar() -> Wrapper<impl Sized>;
 | 
						|
}
 | 
						|
 | 
						|
impl Foo for () {
 | 
						|
    #[expect(refining_impl_trait)]
 | 
						|
    fn bar() -> Wrapper<i32> {
 | 
						|
        Wrapper(0)
 | 
						|
    }
 | 
						|
}
 | 
						|
 | 
						|
fn main() {}
 |