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 LL | if let Some(n) = n.checked_sub(4) {
13 error: `dbg!` macro is intended as a debugging tool
14 --> $DIR/dbg_macro.rs:12:8
16 LL | if dbg!(n <= 1) {
18 help: ensure to avoid having uses of it in version control
23 error: `dbg!` macro is intended as a debugging tool
24 --> $DIR/dbg_macro.rs:13:9
28 help: ensure to avoid having uses of it in version control
33 error: `dbg!` macro is intended as a debugging tool
34 --> $DIR/dbg_macro.rs:15:9
36 LL | dbg!(n * factorial(n - 1))
37 | ^^^^^^^^^^^^^^^^^^^^^^^^^^
38 help: ensure to avoid having uses of it in version control
40 LL | n * factorial(n - 1)
43 error: `dbg!` macro is intended as a debugging tool
44 --> $DIR/dbg_macro.rs:20:5
48 help: ensure to avoid having uses of it in version control
53 error: `dbg!` macro is intended as a debugging tool
54 --> $DIR/dbg_macro.rs:21:5
56 LL | dbg!(dbg!(dbg!(42)));
57 | ^^^^^^^^^^^^^^^^^^^^
58 help: ensure to avoid having uses of it in version control
63 error: `dbg!` macro is intended as a debugging tool
64 --> $DIR/dbg_macro.rs:22:14
66 LL | foo(3) + dbg!(factorial(4));
68 help: ensure to avoid having uses of it in version control
70 LL | foo(3) + factorial(4);
73 error: aborting due to 7 previous errors