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)) { n } else { n }
5 | ^^^^^^^^^^^^^^^^^^^^^^
7 = note: `-D clippy::dbg-macro` implied by `-D warnings`
8 help: ensure to avoid having uses of it in version control
10 LL | if let Some(n) = n.checked_sub(4) { n } else { n }
13 error: `dbg!` macro is intended as a debugging tool
14 --> $DIR/dbg_macro.rs:8:8
16 LL | if dbg!(n <= 1) {
19 help: ensure to avoid having uses of it in version control
24 error: `dbg!` macro is intended as a debugging tool
25 --> $DIR/dbg_macro.rs:9:9
30 help: ensure to avoid having uses of it in version control
35 error: `dbg!` macro is intended as a debugging tool
36 --> $DIR/dbg_macro.rs:11:9
38 LL | dbg!(n * factorial(n - 1))
39 | ^^^^^^^^^^^^^^^^^^^^^^^^^^
41 help: ensure to avoid having uses of it in version control
43 LL | n * factorial(n - 1)
46 error: `dbg!` macro is intended as a debugging tool
47 --> $DIR/dbg_macro.rs:16:5
52 help: ensure to avoid having uses of it in version control
57 error: `dbg!` macro is intended as a debugging tool
58 --> $DIR/dbg_macro.rs:17:5
60 LL | dbg!(dbg!(dbg!(42)));
61 | ^^^^^^^^^^^^^^^^^^^^
63 help: ensure to avoid having uses of it in version control
68 error: `dbg!` macro is intended as a debugging tool
69 --> $DIR/dbg_macro.rs:18:14
71 LL | foo(3) + dbg!(factorial(4));
74 help: ensure to avoid having uses of it in version control
76 LL | foo(3) + factorial(4);
79 error: aborting due to 7 previous errors