mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-12-04 02:20:04 +00:00
c2c73189c8
Co-authored-by: Adrian <adrian.iosdev@gmail.com>
11 lines
450 B
Text
11 lines
450 B
Text
error: `crate` references the macro call's crate
|
|
--> $DIR/crate_in_macro_def.rs:18:28
|
|
|
|
|
LL | println!("{}", crate::unhygienic::MESSAGE);
|
|
| ^^^^^ help: to reference the macro definition's crate, use: `$crate`
|
|
|
|
|
= note: `-D clippy::crate-in-macro-def` implied by `-D warnings`
|
|
= help: to override `-D warnings` add `#[allow(clippy::crate_in_macro_def)]`
|
|
|
|
error: aborting due to 1 previous error
|
|
|