mirror of
				https://github.com/rust-lang/rust.git
				synced 2025-10-31 04:57:19 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			12 lines
		
	
	
		
			134 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
			
		
		
	
	
			12 lines
		
	
	
		
			134 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
| struct A<T> {
 | |
| //~^ ERROR recursive type `A` has infinite size
 | |
|     x: T,
 | |
|     y: A<A<T>>,
 | |
| }
 | |
| 
 | |
| struct B {
 | |
|     z: A<usize>
 | |
| }
 | |
| 
 | |
| fn main() {}
 | 
