rust/tests/ui/hygiene/dollar-crate-modern.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

26 lines
600 B
Rust
Raw Normal View History

// Make sure `$crate` and `crate` work in for basic cases of nested macros.
2018-06-24 16:54:23 +00:00
// check-pass
2018-06-24 16:54:23 +00:00
// aux-build:intercrate.rs
#![feature(decl_macro)]
2018-06-24 16:54:23 +00:00
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!();
2018-06-24 16:54:23 +00:00
fn main() {}