mirror of
https://git.proxmox.com/git/rustc
synced 2025-08-16 04:23:37 +00:00
17 lines
279 B
Rust
17 lines
279 B
Rust
//@ edition:2015
|
|
|
|
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()
|
|
}
|