summaryrefslogtreecommitdiffstats
path: root/tests/ui/proc-macro/is-available.rs
blob: b32bb61b495d3177203a02ca52a6dff1cc00fa4b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// run-pass

extern crate proc_macro;

// aux-build:is-available.rs
extern crate is_available;

fn main() {
    let a = proc_macro::is_available();
    let b = is_available::from_inside_proc_macro!();
    let c = proc_macro::is_available();
    assert!(!a);
    assert!(b);
    assert!(!c);
}