]> git.lizzy.rs Git - rust.git/blob - tests/ui/assertions_on_constants.stderr
Merge branch 'master' into add-lints-aseert-checks
[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
9 error: assert!(false) should probably be replaced
10   --> $DIR/assertions_on_constants.rs:12:5
11    |
12 LL |     assert!(false);
13    |     ^^^^^^^^^^^^^^^ help: try: `panic!()`
14
15 error: aborting due to 2 previous errors
16