summaryrefslogtreecommitdiffstats
path: root/src/test/ui/proc-macro/auxiliary/edition-imports-2015.rs
blob: 27c59b805e21328a6fa8f619c3854fc073ef8c5a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// 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()
}