summaryrefslogtreecommitdiffstats
path: root/src/test/ui/cast/cast-as-bool.rs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/test/ui/cast/cast-as-bool.rs9
1 files changed, 0 insertions, 9 deletions
diff --git a/src/test/ui/cast/cast-as-bool.rs b/src/test/ui/cast/cast-as-bool.rs
deleted file mode 100644
index 1aed218ae..000000000
--- a/src/test/ui/cast/cast-as-bool.rs
+++ /dev/null
@@ -1,9 +0,0 @@
-fn main() {
- let u = 5 as bool; //~ ERROR cannot cast as `bool`
- //~| HELP compare with zero instead
- //~| SUGGESTION 5 != 0
- let t = (1 + 2) as bool; //~ ERROR cannot cast as `bool`
- //~| HELP compare with zero instead
- //~| SUGGESTION (1 + 2) != 0
- let v = "hello" as bool; //~ ERROR casting `&'static str` as `bool` is invalid
-}