2022-04-07 17:39:59 +00:00
|
|
|
error: `crate` references the macro call's crate
|
2024-02-17 12:16:29 +00:00
|
|
|
--> tests/ui/crate_in_macro_def.rs:18:28
|
2022-04-07 17:39:59 +00:00
|
|
|
|
|
|
|
|
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`
|
2023-08-01 12:02:21 +00:00
|
|
|
= help: to override `-D warnings` add `#[allow(clippy::crate_in_macro_def)]`
|
2022-04-07 17:39:59 +00:00
|
|
|
|
2023-11-21 17:08:42 +00:00
|
|
|
error: aborting due to 1 previous error
|
2022-04-07 17:39:59 +00:00
|
|
|
|