17 lines
447 B
Text
17 lines
447 B
Text
|
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`
|
||
|
|
||
|
error: assert!(false) should probably be replaced
|
||
|
--> $DIR/assertions_on_constants.rs:12:5
|
||
|
|
|
||
|
LL | assert!(false);
|
||
|
| ^^^^^^^^^^^^^^^ help: try: `panic!()`
|
||
|
|
||
|
error: aborting due to 2 previous errors
|
||
|
|