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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

4 lines
82 B
Rust
Raw Normal View History

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