rust/tests/ui/unop-neg-bool.rs
2023-01-11 09:32:08 +00:00

4 lines
82 B
Rust

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