rust/src/test/compile-fail/unop-neg-bool.rs

4 lines
82 B
Rust
Raw Normal View History

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