1 A non-root module attempts to import macros from another crate.
3 Example of erroneous code:
7 #[macro_use(debug_assert)] // error: must be at crate root to import
8 extern crate core; // macros from another crate
9 fn run_macro() { debug_assert!(true); }
13 Only `extern crate` imports at the crate root level are allowed to import
16 Either move the macro import to crate root or do without the foreign macros.
20 #[macro_use(debug_assert)]
24 fn run_macro() { debug_assert!(true); }