rust/tests/ui/proc-macro/helper-attr-blocked-by-import-ambig.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

14 lines
353 B
Rust
Raw Normal View History

// 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() {}