rust/tests/ui/dbg_macro/dbg_macro_unfixable.rs

13 lines
292 B
Rust
Raw Normal View History

2024-02-20 12:11:19 -06:00
//@no-rustfix
#![warn(clippy::dbg_macro)]
#[path = "auxiliary/submodule.rs"]
mod submodule;
fn main() {
dbg!(dbg!(dbg!(42)));
//~^ ERROR: the `dbg!` macro is intended as a debugging tool
dbg!(1, 2, dbg!(3, 4));
//~^ ERROR: the `dbg!` macro is intended as a debugging tool
}