2018-11-17 18:25:59 -06:00
|
|
|
// edition:2015
|
2018-12-07 15:53:15 -06:00
|
|
|
// force-host
|
2018-11-17 18:25:59 -06:00
|
|
|
// 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()
|
|
|
|
}
|