mirror of
				https://github.com/rust-lang/rust.git
				synced 2025-10-31 13:04:42 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			15 lines
		
	
	
		
			332 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
			
		
		
	
	
			15 lines
		
	
	
		
			332 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
| // aux-build:bang_proc_macro2.rs
 | |
| 
 | |
| extern crate bang_proc_macro2;
 | |
| 
 | |
| use bang_proc_macro2::bang_proc_macro2;
 | |
| 
 | |
| fn main() {
 | |
|     let foobar = 42;
 | |
|     bang_proc_macro2!();
 | |
|     //~^ ERROR cannot find value `foobar2` in this scope
 | |
|     //~| HELP a local variable with a similar name exists
 | |
|     //~| SUGGESTION foobar
 | |
|     println!("{}", x);
 | |
| }
 | 
