mirror of
				https://github.com/rust-lang/rust.git
				synced 2025-11-04 06:56:14 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			15 lines
		
	
	
		
			205 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
			
		
		
	
	
			15 lines
		
	
	
		
			205 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
// aux-build:test-macros.rs
 | 
						|
 | 
						|
#[macro_use]
 | 
						|
extern crate test_macros;
 | 
						|
 | 
						|
macro_rules! id {
 | 
						|
    ($($t:tt)*) => ($($t)*)
 | 
						|
}
 | 
						|
 | 
						|
#[identity_attr]
 | 
						|
id![static X: u32 = 'a';]; //~ ERROR: mismatched types
 | 
						|
 | 
						|
 | 
						|
fn main() {}
 |