mirror of
https://git.proxmox.com/git/rustc
synced 2025-08-15 07:00:47 +00:00
14 lines
356 B
Rust
14 lines
356 B
Rust
//@ proc-macro: 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() {}
|