]> git.lizzy.rs Git - rust.git/blob - src/tools/clippy/tests/ui/assertions_on_constants.stderr
Auto merge of #104889 - GuillaumeGomez:fix-impl-block-in-const-expr, r=notriddle
[rust.git] / src / tools / clippy / tests / ui / assertions_on_constants.stderr
1 error: `assert!(true)` will be optimized out by the compiler
2   --> $DIR/assertions_on_constants.rs:10:5
3    |
4 LL |     assert!(true);
5    |     ^^^^^^^^^^^^^
6    |
7    = help: remove it
8    = note: `-D clippy::assertions-on-constants` implied by `-D warnings`
9
10 error: `assert!(false)` should probably be replaced
11   --> $DIR/assertions_on_constants.rs:11:5
12    |
13 LL |     assert!(false);
14    |     ^^^^^^^^^^^^^^
15    |
16    = help: use `panic!()` or `unreachable!()`
17
18 error: `assert!(true)` will be optimized out by the compiler
19   --> $DIR/assertions_on_constants.rs:12:5
20    |
21 LL |     assert!(true, "true message");
22    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
23    |
24    = help: remove it
25
26 error: `assert!(false, ..)` should probably be replaced
27   --> $DIR/assertions_on_constants.rs:13:5
28    |
29 LL |     assert!(false, "false message");
30    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
31    |
32    = help: use `panic!(..)` or `unreachable!(..)`
33
34 error: `assert!(false, ..)` should probably be replaced
35   --> $DIR/assertions_on_constants.rs:16:5
36    |
37 LL |     assert!(false, "{}", msg.to_uppercase());
38    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
39    |
40    = help: use `panic!(..)` or `unreachable!(..)`
41
42 error: `assert!(true)` will be optimized out by the compiler
43   --> $DIR/assertions_on_constants.rs:19:5
44    |
45 LL |     assert!(B);
46    |     ^^^^^^^^^^
47    |
48    = help: remove it
49
50 error: `assert!(false)` should probably be replaced
51   --> $DIR/assertions_on_constants.rs:22:5
52    |
53 LL |     assert!(C);
54    |     ^^^^^^^^^^
55    |
56    = help: use `panic!()` or `unreachable!()`
57
58 error: `assert!(false, ..)` should probably be replaced
59   --> $DIR/assertions_on_constants.rs:23:5
60    |
61 LL |     assert!(C, "C message");
62    |     ^^^^^^^^^^^^^^^^^^^^^^^
63    |
64    = help: use `panic!(..)` or `unreachable!(..)`
65
66 error: `debug_assert!(true)` will be optimized out by the compiler
67   --> $DIR/assertions_on_constants.rs:25:5
68    |
69 LL |     debug_assert!(true);
70    |     ^^^^^^^^^^^^^^^^^^^
71    |
72    = help: remove it
73
74 error: aborting due to 9 previous errors
75