1 error: `dbg!` macro is intended as a debugging tool
2 --> $DIR/dbg_macro.rs:4:22
4 LL | if let Some(n) = dbg!(n.checked_sub(4)) {
5 | ^^^^^^^^^^^^^^^^^^^^^^
7 = note: `-D clippy::dbg-macro` implied by `-D warnings`
8 = help: ensure to avoid having uses of it in version control
10 error: `dbg!` macro is intended as a debugging tool
11 --> $DIR/dbg_macro.rs:12:8
13 LL | if dbg!(n <= 1) {
16 = help: ensure to avoid having uses of it in version control
18 error: `dbg!` macro is intended as a debugging tool
19 --> $DIR/dbg_macro.rs:13:9
24 = help: ensure to avoid having uses of it in version control
26 error: `dbg!` macro is intended as a debugging tool
27 --> $DIR/dbg_macro.rs:15:9
29 LL | dbg!(n * factorial(n - 1))
30 | ^^^^^^^^^^^^^^^^^^^^^^^^^^
32 = help: ensure to avoid having uses of it in version control
34 error: `dbg!` macro is intended as a debugging tool
35 --> $DIR/dbg_macro.rs:20:5
40 = help: ensure to avoid having uses of it in version control
42 error: `dbg!` macro is intended as a debugging tool
43 --> $DIR/dbg_macro.rs:21:5
45 LL | dbg!(dbg!(dbg!(42)));
46 | ^^^^^^^^^^^^^^^^^^^^
48 = help: ensure to avoid having uses of it in version control
50 error: `dbg!` macro is intended as a debugging tool
51 --> $DIR/dbg_macro.rs:22:14
53 LL | foo(3) + dbg!(factorial(4));
56 = help: ensure to avoid having uses of it in version control
58 error: aborting due to 7 previous errors