mirror of
				https://github.com/rust-lang/rust.git
				synced 2025-10-31 04:57:19 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			13 lines
		
	
	
		
			210 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
			
		
		
	
	
			13 lines
		
	
	
		
			210 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
| struct S {
 | |
|     a: u32,
 | |
| }
 | |
| 
 | |
| fn main() {
 | |
|     let s1 = S { a: 1 };
 | |
| 
 | |
|     let _ = || {
 | |
|         let s2 = Oops { a: 2, ..s1 };
 | |
|         //~^ ERROR cannot find struct, variant or union type `Oops` in this scope
 | |
|     };
 | |
| }
 | 
