I'm modifying a code that used to compile ok. All of a sudden a macro stopped being visible in the scope of its doc-comment. This happens when I import code from a test script:
/// ...
/// let map = localization_vars!{ ... }
/// ...
///
#[macro_export]
macro_rules! localization_vars {
// ...
}
I get:
error: cannot find macro `localization_vars` in this scope
--> src\message_locator.rs:14:15
|
3 | let map = localization_vars!{
| ^^^^^^^^^^^^^^^^^
|
= note: consider importing this macro:
recoyx_message_localization::localization_vars
I tried adding #[macro_use]
, yet nothing.
I also just tried this:
macro_rules! localization_vars {
....
}
pub use localization_vars;
This gives duplicate error.