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