mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-29 12:36:35 +03:00
16 lines
478 B
Rust
16 lines
478 B
Rust
//@ force-host
|
|
//@ no-prefer-dynamic
|
|
|
|
#![crate_type = "proc-macro"]
|
|
#![deny(ambiguous_derive_helpers)]
|
|
|
|
extern crate proc_macro;
|
|
|
|
use proc_macro::TokenStream;
|
|
|
|
#[proc_macro_derive(Trait, attributes(ignore))] //~ ERROR there exists a built-in attribute with the same name
|
|
//~| WARN this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
|
|
pub fn deriving(input: TokenStream) -> TokenStream {
|
|
TokenStream::new()
|
|
}
|