52 lines
1.3 KiB
Plaintext
52 lines
1.3 KiB
Plaintext
error: assert!(true) will be optimized out by the compiler
|
|
--> $DIR/assertions_on_constants.rs:2:5
|
|
|
|
|
LL | assert!(true);
|
|
| ^^^^^^^^^^^^^^
|
|
|
|
|
= note: `-D clippy::assertions-on-constants` implied by `-D warnings`
|
|
= help: remove it
|
|
|
|
error: assert!(false) should probably be replaced
|
|
--> $DIR/assertions_on_constants.rs:3:5
|
|
|
|
|
LL | assert!(false);
|
|
| ^^^^^^^^^^^^^^^
|
|
|
|
|
= help: use panic!() or unreachable!()
|
|
|
|
error: assert!(true) will be optimized out by the compiler
|
|
--> $DIR/assertions_on_constants.rs:4:5
|
|
|
|
|
LL | assert!(true, "true message");
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
= help: remove it
|
|
|
|
error: assert!(false) should probably be replaced
|
|
--> $DIR/assertions_on_constants.rs:5: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:8:5
|
|
|
|
|
LL | assert!(B);
|
|
| ^^^^^^^^^^^
|
|
|
|
|
= help: remove it
|
|
|
|
error: assert!(const: false) should probably be replaced
|
|
--> $DIR/assertions_on_constants.rs:11:5
|
|
|
|
|
LL | assert!(C);
|
|
| ^^^^^^^^^^^
|
|
|
|
|
= help: use panic!() or unreachable!()
|
|
|
|
error: aborting due to 6 previous errors
|
|
|