2018-11-24 13:34:13 +00:00
|
|
|
//@ force-host
|
|
|
|
//@ no-prefer-dynamic
|
|
|
|
|
2018-09-10 21:30:21 +00:00
|
|
|
#![crate_type = "proc-macro"]
|
|
|
|
|
|
|
|
extern crate proc_macro;
|
|
|
|
use proc_macro::*;
|
|
|
|
|
|
|
|
#[proc_macro_attribute]
|
|
|
|
pub fn cfg(_: TokenStream, input: TokenStream) -> TokenStream {
|
2019-06-29 22:24:34 +00:00
|
|
|
//~^ ERROR name `cfg` is reserved in attribute namespace
|
2018-09-10 21:30:21 +00:00
|
|
|
input
|
|
|
|
}
|
|
|
|
|
|
|
|
#[proc_macro_attribute]
|
|
|
|
pub fn cfg_attr(_: TokenStream, input: TokenStream) -> TokenStream {
|
2019-06-29 22:24:34 +00:00
|
|
|
//~^ ERROR name `cfg_attr` is reserved in attribute namespace
|
2018-09-10 21:30:21 +00:00
|
|
|
input
|
|
|
|
}
|