rust-clippy/tests/ui/crate_in_macro_def.stderr

11 lines
368 B
Text
Raw Normal View History

error: `crate` references the macro call's crate
2023-07-27 11:40:22 +00:00
--> $DIR/crate_in_macro_def.rs:18:28
2022-03-24 01:08:52 +00:00
|
LL | println!("{}", crate::unhygienic::MESSAGE);
| ^^^^^ help: to reference the macro definition's crate, use: `$crate`
2022-03-24 01:08:52 +00:00
|
= note: `-D clippy::crate-in-macro-def` implied by `-D warnings`
error: aborting due to previous error