rust/src/test/compile-fail/unop-neg-bool.rs
2013-02-04 23:01:47 +09:00

4 lines
82 B
Rust

fn main() {
-true; //~ ERROR cannot apply unary operator `-` to type `bool`
}