2018-11-24 07:34:13 -06:00
|
|
|
// force-host
|
|
|
|
// no-prefer-dynamic
|
|
|
|
|
2018-09-10 16:30:21 -05: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 17:24:34 -05:00
|
|
|
//~^ ERROR name `cfg` is reserved in attribute namespace
|
2018-09-10 16:30:21 -05:00
|
|
|
input
|
|
|
|
}
|
|
|
|
|
|
|
|
#[proc_macro_attribute]
|
|
|
|
pub fn cfg_attr(_: TokenStream, input: TokenStream) -> TokenStream {
|
2019-06-29 17:24:34 -05:00
|
|
|
//~^ ERROR name `cfg_attr` is reserved in attribute namespace
|
2018-09-10 16:30:21 -05:00
|
|
|
input
|
|
|
|
}
|