2018-06-28 19:45:47 -05:00
|
|
|
// Make sure `$crate` and `crate` work in for basic cases of nested macros.
|
2018-06-24 11:54:23 -05:00
|
|
|
|
2019-07-14 05:34:13 -05:00
|
|
|
// check-pass
|
2018-06-24 11:54:23 -05:00
|
|
|
// aux-build:intercrate.rs
|
|
|
|
|
2018-06-28 19:45:47 -05:00
|
|
|
#![feature(decl_macro, crate_in_paths)]
|
2018-06-24 11:54:23 -05:00
|
|
|
|
|
|
|
extern crate intercrate;
|
|
|
|
|
2018-06-28 19:45:47 -05:00
|
|
|
// `$crate`
|
|
|
|
intercrate::uses_dollar_crate_modern!();
|
|
|
|
|
|
|
|
intercrate::define_uses_dollar_crate_modern_nested!(uses_dollar_crate_modern_nested);
|
|
|
|
uses_dollar_crate_modern_nested!();
|
|
|
|
|
|
|
|
intercrate::define_uses_dollar_crate_legacy_nested!();
|
|
|
|
uses_dollar_crate_legacy_nested!();
|
|
|
|
|
|
|
|
// `crate`
|
|
|
|
intercrate::uses_crate_modern!();
|
|
|
|
|
|
|
|
intercrate::define_uses_crate_modern_nested!(uses_crate_modern_nested);
|
|
|
|
uses_crate_modern_nested!();
|
2018-06-24 11:54:23 -05:00
|
|
|
|
|
|
|
fn main() {}
|