mirror of
https://github.com/rust-lang/rust.git
synced 2024-10-31 22:41:50 +00:00
26 lines
600 B
Rust
26 lines
600 B
Rust
// Make sure `$crate` and `crate` work in for basic cases of nested macros.
|
|
|
|
// check-pass
|
|
// aux-build:intercrate.rs
|
|
|
|
#![feature(decl_macro)]
|
|
|
|
extern crate intercrate;
|
|
|
|
// `$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!();
|
|
|
|
fn main() {}
|