mirror of
				https://github.com/rust-lang/rust.git
				synced 2025-10-31 04:57:19 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			12 lines
		
	
	
		
			339 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
			
		
		
	
	
			12 lines
		
	
	
		
			339 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
| // Regression test for issue #25436: check that things which can be
 | |
| // followed by any token also permit X* to come afterwards.
 | |
| 
 | |
| #![allow(unused_macros)]
 | |
| 
 | |
| macro_rules! foo {
 | |
|   ( $a:expr $($b:tt)* ) => { }; //~ ERROR not allowed for `expr` fragments
 | |
|   ( $a:ty $($b:tt)* ) => { };   //~ ERROR not allowed for `ty` fragments
 | |
| }
 | |
| 
 | |
| fn main() { }
 | 
