blob: 377a1f25b635c6a2f50e7aaee68a9caf2e22d688 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
// 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);
}
|