mirror of
				https://github.com/rust-lang/rust.git
				synced 2025-10-30 04:24:26 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			14 lines
		
	
	
		
			280 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
			
		
		
	
	
			14 lines
		
	
	
		
			280 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
| //@ aux-build:system-allocator.rs
 | |
| //@ no-prefer-dynamic
 | |
| 
 | |
| extern crate system_allocator;
 | |
| 
 | |
| use std::alloc::System;
 | |
| 
 | |
| #[global_allocator]
 | |
| static A: System = System;
 | |
| 
 | |
| fn main() {}
 | |
| 
 | |
| //~? ERROR the `#[global_allocator]` in this crate conflicts with global allocator in: system_allocator
 | 
