diff options
Diffstat (limited to 'tests/ui/unop-neg-bool.rs')
-rw-r--r-- | tests/ui/unop-neg-bool.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/ui/unop-neg-bool.rs b/tests/ui/unop-neg-bool.rs new file mode 100644 index 000000000..6f1f1aba4 --- /dev/null +++ b/tests/ui/unop-neg-bool.rs @@ -0,0 +1,3 @@ +fn main() { + -true; //~ ERROR cannot apply unary operator `-` to type `bool` +} |