2019-01-09 10:38:38 +00:00
|
|
|
error: assert!(true) will be optimized out by the compiler
|
|
|
|
--> $DIR/assertions_on_constants.rs:11:5
|
|
|
|
|
|
|
|
|
LL | assert!(true);
|
|
|
|
| ^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= note: `-D clippy::assertions-on-constants` implied by `-D warnings`
|
2019-01-09 18:30:47 +00:00
|
|
|
= help: remove it
|
2019-01-09 10:38:38 +00:00
|
|
|
|
|
|
|
error: assert!(false) should probably be replaced
|
|
|
|
--> $DIR/assertions_on_constants.rs:12:5
|
|
|
|
|
|
|
|
|
LL | assert!(false);
|
2019-01-09 18:30:47 +00:00
|
|
|
| ^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= help: use panic!() or unreachable!()
|
|
|
|
|
|
|
|
error: assert!(true) will be optimized out by the compiler
|
|
|
|
--> $DIR/assertions_on_constants.rs:13:5
|
|
|
|
|
|
|
|
|
LL | assert!(true, "true message");
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= help: remove it
|
|
|
|
|
|
|
|
error: assert!(false) should probably be replaced
|
|
|
|
--> $DIR/assertions_on_constants.rs:14:5
|
|
|
|
|
|
|
|
|
LL | assert!(false, "false message");
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= help: use panic!() or unreachable!()
|
|
|
|
|
|
|
|
error: assert!(const: true) will be optimized out by the compiler
|
|
|
|
--> $DIR/assertions_on_constants.rs:17:5
|
|
|
|
|
|
|
|
|
LL | assert!(B);
|
|
|
|
| ^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= help: remove it
|
|
|
|
|
|
|
|
error: assert!(const: false) should probably be replaced
|
|
|
|
--> $DIR/assertions_on_constants.rs:20:5
|
|
|
|
|
|
|
|
|
LL | assert!(C);
|
|
|
|
| ^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= help: use panic!() or unreachable!()
|
2019-01-09 10:38:38 +00:00
|
|
|
|
2019-01-09 18:30:47 +00:00
|
|
|
error: aborting due to 6 previous errors
|
2019-01-09 10:38:38 +00:00
|
|
|
|