mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-05 21:24:12 +00:00
20 lines
445 B
Rust
20 lines
445 B
Rust
// force-host
|
|
// no-prefer-dynamic
|
|
|
|
#![crate_type = "proc-macro"]
|
|
|
|
extern crate proc_macro;
|
|
use proc_macro::*;
|
|
|
|
#[proc_macro_attribute]
|
|
pub fn cfg(_: TokenStream, input: TokenStream) -> TokenStream {
|
|
//~^ ERROR name `cfg` is reserved in attribute namespace
|
|
input
|
|
}
|
|
|
|
#[proc_macro_attribute]
|
|
pub fn cfg_attr(_: TokenStream, input: TokenStream) -> TokenStream {
|
|
//~^ ERROR name `cfg_attr` is reserved in attribute namespace
|
|
input
|
|
}
|