mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-02 11:44:28 +00:00
16 lines
295 B
Rust
16 lines
295 B
Rust
//@ 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);
|
|
}
|