2019-01-09 04:38:38 -06:00
|
|
|
error: assert!(true) will be optimized out by the compiler
|
2019-02-05 12:06:08 -06:00
|
|
|
--> $DIR/assertions_on_constants.rs:9:5
|
2019-01-09 04:38:38 -06:00
|
|
|
|
|
|
|
|
LL | assert!(true);
|
|
|
|
| ^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= note: `-D clippy::assertions-on-constants` implied by `-D warnings`
|
2019-01-09 12:30:47 -06:00
|
|
|
= help: remove it
|
2019-01-09 04:38:38 -06:00
|
|
|
|
|
|
|
error: assert!(false) should probably be replaced
|
2019-02-05 12:06:08 -06:00
|
|
|
--> $DIR/assertions_on_constants.rs:10:5
|
2019-01-09 04:38:38 -06:00
|
|
|
|
|
|
|
|
LL | assert!(false);
|
2019-01-09 12:30:47 -06:00
|
|
|
| ^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= help: use panic!() or unreachable!()
|
|
|
|
|
|
|
|
error: assert!(true) will be optimized out by the compiler
|
2019-02-05 12:06:08 -06:00
|
|
|
--> $DIR/assertions_on_constants.rs:11:5
|
2019-01-09 12:30:47 -06:00
|
|
|
|
|
|
|
|
LL | assert!(true, "true message");
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= help: remove it
|
|
|
|
|
|
|
|
error: assert!(false) should probably be replaced
|
2019-02-05 12:06:08 -06:00
|
|
|
--> $DIR/assertions_on_constants.rs:12:5
|
2019-01-09 12:30:47 -06:00
|
|
|
|
|
|
|
|
LL | assert!(false, "false message");
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= help: use panic!() or unreachable!()
|
|
|
|
|
|
|
|
error: assert!(const: true) will be optimized out by the compiler
|
2019-02-05 12:06:08 -06:00
|
|
|
--> $DIR/assertions_on_constants.rs:15:5
|
2019-01-09 12:30:47 -06:00
|
|
|
|
|
|
|
|
LL | assert!(B);
|
|
|
|
| ^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= help: remove it
|
|
|
|
|
|
|
|
error: assert!(const: false) should probably be replaced
|
2019-02-05 12:06:08 -06:00
|
|
|
--> $DIR/assertions_on_constants.rs:18:5
|
2019-01-09 12:30:47 -06:00
|
|
|
|
|
|
|
|
LL | assert!(C);
|
|
|
|
| ^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= help: use panic!() or unreachable!()
|
2019-01-09 04:38:38 -06:00
|
|
|
|
2019-02-05 12:06:08 -06:00
|
|
|
error: assert!(true) will be optimized out by the compiler
|
|
|
|
--> $DIR/assertions_on_constants.rs:20:5
|
|
|
|
|
|
|
|
|
LL | debug_assert!(true);
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= help: remove it
|
|
|
|
= note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)
|
|
|
|
|
|
|
|
error: aborting due to 7 previous errors
|
2019-01-09 04:38:38 -06:00
|
|
|
|