]> git.lizzy.rs Git - rust.git/blob - tests/ui/proc-macro/lints_in_proc_macros.rs
Rollup merge of #106788 - estebank:elaborate_pred_E0599, r=compiler-errors
[rust.git] / tests / ui / proc-macro / lints_in_proc_macros.rs
1 // aux-build:bang_proc_macro2.rs
2
3 extern crate bang_proc_macro2;
4
5 use bang_proc_macro2::bang_proc_macro2;
6
7 fn main() {
8     let foobar = 42;
9     bang_proc_macro2!();
10     //~^ ERROR cannot find value `foobar2` in this scope
11     //~| HELP a local variable with a similar name exists
12     //~| SUGGESTION foobar
13     println!("{}", x);
14 }