2017-07-11 02:52:50 -05:00
|
|
|
// 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
|
2019-01-09 13:11:00 -06:00
|
|
|
//~| HELP a local variable with a similar name exists
|
|
|
|
//~| SUGGESTION foobar
|
2018-06-24 12:02:24 -05:00
|
|
|
println!("{}", x);
|
2017-07-11 02:52:50 -05:00
|
|
|
}
|