mirror of
				https://github.com/rust-lang/rust.git
				synced 2025-10-31 13:04:42 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			11 lines
		
	
	
		
			232 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
			
		
		
	
	
			11 lines
		
	
	
		
			232 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
| // Regression test for issue #83469
 | |
| // Ensures that we recover from `#[global_alloc]` on an invalid
 | |
| // stmt without an ICE
 | |
| 
 | |
| fn outer() {
 | |
|     #[global_allocator]
 | |
|     fn inner() {} //~ ERROR allocators must be statics
 | |
| }
 | |
| 
 | |
| fn main() {}
 | 
