rustc/tests/ui/unop-neg-bool.rs
2023-08-02 10:33:26 +02:00

4 lines
82 B
Rust

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