]> git.lizzy.rs Git - rust.git/blob - tests/ui/dbg_macro.stderr
add more test cases for dbg_macro rule
[rust.git] / tests / ui / dbg_macro.stderr
1 error: `dbg!` macro is intended as a debugging tool
2   --> $DIR/dbg_macro.rs:4:22
3    |
4 LL |     if let Some(n) = dbg!(n.checked_sub(4)) {
5    |                      ^^^^^^^^^^^^^^^^^^^^^^
6    |
7    = note: `-D clippy::dbg-macro` implied by `-D warnings`
8    = help: ensure to avoid having uses of it in version control
9
10 error: `dbg!` macro is intended as a debugging tool
11   --> $DIR/dbg_macro.rs:12:8
12    |
13 LL |     if dbg!(n <= 1) {
14    |        ^^^^^^^^^^^^
15    |
16    = help: ensure to avoid having uses of it in version control
17
18 error: `dbg!` macro is intended as a debugging tool
19   --> $DIR/dbg_macro.rs:13:9
20    |
21 LL |         dbg!(1)
22    |         ^^^^^^^
23    |
24    = help: ensure to avoid having uses of it in version control
25
26 error: `dbg!` macro is intended as a debugging tool
27   --> $DIR/dbg_macro.rs:15:9
28    |
29 LL |         dbg!(n * factorial(n - 1))
30    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^
31    |
32    = help: ensure to avoid having uses of it in version control
33
34 error: `dbg!` macro is intended as a debugging tool
35   --> $DIR/dbg_macro.rs:20:5
36    |
37 LL |     dbg!(42);
38    |     ^^^^^^^^
39    |
40    = help: ensure to avoid having uses of it in version control
41
42 error: `dbg!` macro is intended as a debugging tool
43   --> $DIR/dbg_macro.rs:21:5
44    |
45 LL |     dbg!(dbg!(dbg!(42)));
46    |     ^^^^^^^^^^^^^^^^^^^^
47    |
48    = help: ensure to avoid having uses of it in version control
49
50 error: `dbg!` macro is intended as a debugging tool
51   --> $DIR/dbg_macro.rs:22:14
52    |
53 LL |     foo(3) + dbg!(factorial(4));
54    |              ^^^^^^^^^^^^^^^^^^
55    |
56    = help: ensure to avoid having uses of it in version control
57
58 error: aborting due to 7 previous errors
59