]> git.lizzy.rs Git - rust.git/blob - tests/ui/assertions_on_constants.stderr
Merge branch 'master' into add-lints-aseert-checks
[rust.git] / tests / ui / assertions_on_constants.stderr
1 error: assert!(true) will be optimized out by the compiler
2   --> $DIR/assertions_on_constants.rs:11:5
3    |
4 LL |     assert!(true);
5    |     ^^^^^^^^^^^^^^
6    |
7    = note: `-D clippy::assertions-on-constants` implied by `-D warnings`
8    = help: remove it
9
10 error: assert!(false) should probably be replaced
11   --> $DIR/assertions_on_constants.rs:12: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:13: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:14:5
28    |
29 LL |     assert!(false, "false message");
30    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
31    |
32    = help: use panic!() or unreachable!()
33
34 error: assert!(const: true) will be optimized out by the compiler
35   --> $DIR/assertions_on_constants.rs:17:5
36    |
37 LL |     assert!(B);
38    |     ^^^^^^^^^^^
39    |
40    = help: remove it
41
42 error: assert!(const: false) should probably be replaced
43   --> $DIR/assertions_on_constants.rs:20:5
44    |
45 LL |     assert!(C);
46    |     ^^^^^^^^^^^
47    |
48    = help: use panic!() or unreachable!()
49
50 error: aborting due to 6 previous errors
51