mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-29 10:13:54 +00:00
21 lines
347 B
Rust
21 lines
347 B
Rust
//@ edition:2015
|
|
//@ force-host
|
|
//@ no-prefer-dynamic
|
|
|
|
#![crate_type = "proc-macro"]
|
|
|
|
extern crate proc_macro;
|
|
|
|
use proc_macro::TokenStream;
|
|
|
|
#[proc_macro_derive(Derive2015)]
|
|
pub fn derive_2015(_: TokenStream) -> TokenStream {
|
|
"
|
|
use import::Path;
|
|
|
|
fn check_absolute() {
|
|
let x = ::absolute::Path;
|
|
}
|
|
".parse().unwrap()
|
|
}
|