@@ -185,6 +185,49 @@ mod foo {
185185}
186186```
187187"## ,
188+
189+ E0469 : r##"
190+ A macro listed for import was not found.
191+
192+ Erroneous code example:
193+
194+ ```compile_fail,E0469
195+ #[macro_use(drink, be_merry)] // error: imported macro not found
196+ extern crate collections;
197+
198+ fn main() {
199+ // ...
200+ }
201+ ```
202+
203+ Either the listed macro is not contained in the imported crate, or it is not
204+ exported from the given crate.
205+
206+ This could be caused by a typo. Did you misspell the macro's name?
207+
208+ Double-check the names of the macros listed for import, and that the crate
209+ in question exports them.
210+
211+ A working version would be:
212+
213+ ```ignore
214+ // In some_crate:
215+ #[macro_export]
216+ macro_rules! eat {
217+ ...
218+ }
219+
220+ #[macro_export]
221+ macro_rules! drink {
222+ ...
223+ }
224+
225+ // In your crate:
226+ #[macro_use(eat, drink)]
227+ extern crate some_crate; //ok!
228+ ```
229+ "## ,
230+
188231}
189232
190233register_diagnostics ! {
@@ -196,7 +239,6 @@ register_diagnostics! {
196239 E0462 , // found staticlib `..` instead of rlib or dylib
197240 E0464 , // multiple matching crates for `..`
198241 E0465 , // multiple .. candidates for `..` found
199- E0469 , // imported macro not found
200242 E0470 , // reexported macro not found
201243 E0519 , // local crate and dependency have same (crate-name, disambiguator)
202244 E0523 , // two dependencies have same (crate-name, disambiguator) but different SVH
0 commit comments