rust/tests/ui/unop/unop-neg-bool.rs

4 lines
82 B
Rust

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