about summary refs log tree commit diff
path: root/tests/ui/proc-macro/lints_in_proc_macros.rs
blob: 2c22c787982eb1caa98619887b2b287deb66d5d5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//@ proc-macro: bang_proc_macro2.rs
//@ ignore-backends: gcc

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);
}