mirror of
				https://github.com/rust-lang/rust.git
				synced 2025-10-30 20:44:34 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			24 lines
		
	
	
		
			333 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
			
		
		
	
	
			24 lines
		
	
	
		
			333 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
| //@ proc-macro: test-macros.rs
 | |
| 
 | |
| #[macro_use]
 | |
| extern crate test_macros;
 | |
| 
 | |
| #[recollect_attr]
 | |
| fn another() {
 | |
|     fn bar() {
 | |
|         let x: u32 = "x"; //~ ERROR: mismatched types
 | |
|     }
 | |
| 
 | |
|     bar();
 | |
| }
 | |
| 
 | |
| fn main() {
 | |
|     #[recollect_attr]
 | |
|     fn bar() {
 | |
|         let x: u32 = "x"; //~ ERROR: mismatched types
 | |
|     }
 | |
| 
 | |
|     bar();
 | |
|     another();
 | |
| }
 | 
