clean up E0468 explanation
This commit is contained in:
parent
98803c182b
commit
3bcb3ef8d3
1 changed files with 2 additions and 2 deletions
|
@ -1,4 +1,4 @@
|
||||||
A non-root module attempts to import macros from another crate.
|
A non-root module tried to import macros from another crate.
|
||||||
|
|
||||||
Example of erroneous code:
|
Example of erroneous code:
|
||||||
|
|
||||||
|
@ -17,7 +17,7 @@ Either move the macro import to crate root or do without the foreign macros.
|
||||||
This will work:
|
This will work:
|
||||||
|
|
||||||
```
|
```
|
||||||
#[macro_use(debug_assert)]
|
#[macro_use(debug_assert)] // ok!
|
||||||
extern crate core;
|
extern crate core;
|
||||||
|
|
||||||
mod foo {
|
mod foo {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue