rust/tests/ui/assertions_on_constants.rs

13 lines
212 B
Rust
Raw Normal View History

fn main() {
assert!(true);
assert!(false);
assert!(true, "true message");
assert!(false, "false message");
const B: bool = true;
assert!(B);
const C: bool = false;
assert!(C);
}