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

4 lines
82 B
Rust
Raw Normal View History

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