diff options
Diffstat (limited to 'tests/ui/macros/macro-crate-nonterminal-non-root.rs')
-rw-r--r-- | tests/ui/macros/macro-crate-nonterminal-non-root.rs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/ui/macros/macro-crate-nonterminal-non-root.rs b/tests/ui/macros/macro-crate-nonterminal-non-root.rs new file mode 100644 index 000000000..67899556f --- /dev/null +++ b/tests/ui/macros/macro-crate-nonterminal-non-root.rs @@ -0,0 +1,9 @@ +// aux-build:macro_crate_nonterminal.rs + +mod foo { + #[macro_use] + extern crate macro_crate_nonterminal; //~ ERROR must be at the crate root +} + +fn main() { +} |