mirror of
				https://github.com/rust-lang/rust.git
				synced 2025-11-03 22:49:17 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			16 lines
		
	
	
		
			224 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
			
		
		
	
	
			16 lines
		
	
	
		
			224 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
// check-pass
 | 
						|
 | 
						|
// edition:2021
 | 
						|
// for the `impl` + keyword test
 | 
						|
 | 
						|
macro_rules! impl_primitive {
 | 
						|
    ($ty:ty) => {
 | 
						|
        compile_error!("whoops");
 | 
						|
    };
 | 
						|
    (impl async) => {};
 | 
						|
}
 | 
						|
 | 
						|
impl_primitive!(impl async);
 | 
						|
 | 
						|
fn main() {}
 |