2017-07-11 02:52:50 -05:00
|
|
|
// aux-build:bang_proc_macro2.rs
|
|
|
|
|
2018-07-05 20:09:35 -05:00
|
|
|
#![feature(proc_macro_hygiene)]
|
2017-07-11 02:52:50 -05:00
|
|
|
#![allow(unused_macros)]
|
|
|
|
|
|
|
|
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
|
|
|
|
//~^^ did you mean `foobar`?
|
2018-06-24 12:02:24 -05:00
|
|
|
println!("{}", x);
|
2017-07-11 02:52:50 -05:00
|
|
|
}
|