summaryrefslogtreecommitdiffstats
path: root/tests/ui/proc-macro/helper-attr-blocked-by-import-ambig.rs
blob: 40c42d82f68de9e9c338157f857c197d1eeaaeb6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// aux-build:test-macros.rs

#[macro_use(Empty)]
extern crate test_macros;
use test_macros::empty_attr as empty_helper;

#[empty_helper] //~ ERROR `empty_helper` is ambiguous
                //~| WARN derive helper attribute is used before it is introduced
                //~| WARN this was previously accepted
#[derive(Empty)]
struct S;

fn main() {}