mirror of
				https://github.com/rust-lang/rust.git
				synced 2025-10-31 21:16:44 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			14 lines
		
	
	
		
			213 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
			
		
		
	
	
			14 lines
		
	
	
		
			213 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
| //! Test that we allow unsizing `[Opaque; N]` to `[Concrete]`.
 | |
| 
 | |
| //@check-pass
 | |
| 
 | |
| fn hello() -> [impl Sized; 2] {
 | |
|     if false {
 | |
|         let x = hello();
 | |
|         let _: &[i32] = &x;
 | |
|     }
 | |
|     todo!()
 | |
| }
 | |
| 
 | |
| fn main() {}
 | 
