]> git.lizzy.rs Git - rust.git/blob - tests/ui/assertions_on_constants.stderr
author: fix some bugs
[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    = note: this error originates in the macro `assert` (in Nightly builds, run with -Z macro-backtrace for more info)
10
11 error: `assert!(false)` should probably be replaced
12   --> $DIR/assertions_on_constants.rs:12:5
13    |
14 LL |     assert!(false);
15    |     ^^^^^^^^^^^^^^
16    |
17    = help: use `panic!()` or `unreachable!()`
18    = note: this error originates in the macro `assert` (in Nightly builds, run with -Z macro-backtrace for more info)
19
20 error: `assert!(true)` will be optimized out by the compiler
21   --> $DIR/assertions_on_constants.rs:13:5
22    |
23 LL |     assert!(true, "true message");
24    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
25    |
26    = help: remove it
27    = note: this error originates in the macro `assert` (in Nightly builds, run with -Z macro-backtrace for more info)
28
29 error: `assert!(false, $crate::const_format_args!($($t)+))` should probably be replaced
30   --> $DIR/assertions_on_constants.rs:14:5
31    |
32 LL |     assert!(false, "false message");
33    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
34    |
35    = help: use `panic!($crate::const_format_args!($($t)+))` or `unreachable!($crate::const_format_args!($($t)+))`
36    = note: this error originates in the macro `assert` (in Nightly builds, run with -Z macro-backtrace for more info)
37
38 error: `assert!(true)` will be optimized out by the compiler
39   --> $DIR/assertions_on_constants.rs:20:5
40    |
41 LL |     assert!(B);
42    |     ^^^^^^^^^^
43    |
44    = help: remove it
45    = note: this error originates in the macro `assert` (in Nightly builds, run with -Z macro-backtrace for more info)
46
47 error: `assert!(false)` should probably be replaced
48   --> $DIR/assertions_on_constants.rs:23:5
49    |
50 LL |     assert!(C);
51    |     ^^^^^^^^^^
52    |
53    = help: use `panic!()` or `unreachable!()`
54    = note: this error originates in the macro `assert` (in Nightly builds, run with -Z macro-backtrace for more info)
55
56 error: `assert!(false, $crate::const_format_args!($($t)+))` should probably be replaced
57   --> $DIR/assertions_on_constants.rs:24:5
58    |
59 LL |     assert!(C, "C message");
60    |     ^^^^^^^^^^^^^^^^^^^^^^^
61    |
62    = help: use `panic!($crate::const_format_args!($($t)+))` or `unreachable!($crate::const_format_args!($($t)+))`
63    = note: this error originates in the macro `assert` (in Nightly builds, run with -Z macro-backtrace for more info)
64
65 error: `debug_assert!(true)` will be optimized out by the compiler
66   --> $DIR/assertions_on_constants.rs:26:5
67    |
68 LL |     debug_assert!(true);
69    |     ^^^^^^^^^^^^^^^^^^^
70    |
71    = help: remove it
72    = note: this error originates in the macro `$crate::assert` (in Nightly builds, run with -Z macro-backtrace for more info)
73
74 error: aborting due to 8 previous errors
75