summaryrefslogtreecommitdiffstats
path: root/src/test/ui/block-result/block-must-not-have-result-while.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/block-result/block-must-not-have-result-while.rs')
-rw-r--r--src/test/ui/block-result/block-must-not-have-result-while.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/test/ui/block-result/block-must-not-have-result-while.rs b/src/test/ui/block-result/block-must-not-have-result-while.rs
new file mode 100644
index 000000000..418059bf2
--- /dev/null
+++ b/src/test/ui/block-result/block-must-not-have-result-while.rs
@@ -0,0 +1,6 @@
+fn main() {
+ while true { //~ WARN denote infinite loops with
+ true //~ ERROR mismatched types
+ //~| expected `()`, found `bool`
+ }
+}