rust/tests/run-pass/unops.rs

6 lines
110 B
Rust
Raw Normal View History

2018-08-26 13:42:02 -05:00
fn main() {
assert_eq!(!true, false);
assert_eq!(!0xFFu16, 0xFF00);
assert_eq!(-{1i16}, -1i16);
}