diff options
Diffstat (limited to 'tests/ui/proc-macro/is-available.rs')
-rw-r--r-- | tests/ui/proc-macro/is-available.rs | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/ui/proc-macro/is-available.rs b/tests/ui/proc-macro/is-available.rs new file mode 100644 index 000000000..b32bb61b4 --- /dev/null +++ b/tests/ui/proc-macro/is-available.rs @@ -0,0 +1,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); +} |