mirror of
				https://github.com/rust-lang/rust.git
				synced 2025-10-31 21:16:44 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			13 lines
		
	
	
		
			245 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
			
		
		
	
	
			13 lines
		
	
	
		
			245 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
| macro_rules! define_other_core {
 | |
|     ( ) => {
 | |
|         extern crate std as core;
 | |
|         //~^ ERROR macro-expanded `extern crate` items cannot shadow names passed with `--extern`
 | |
|     };
 | |
| }
 | |
| 
 | |
| fn main() {
 | |
|     core::panic!();
 | |
| }
 | |
| 
 | |
| define_other_core!();
 | 
