summaryrefslogtreecommitdiffstats
path: root/src/test/ui/issues/issue-43806.rs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/test/ui/issues/issue-43806.rs23
1 files changed, 23 insertions, 0 deletions
diff --git a/src/test/ui/issues/issue-43806.rs b/src/test/ui/issues/issue-43806.rs
new file mode 100644
index 000000000..8c8cccfb2
--- /dev/null
+++ b/src/test/ui/issues/issue-43806.rs
@@ -0,0 +1,23 @@
+// check-pass
+
+#![deny(unused_results)]
+
+enum Void {}
+
+fn foo() {}
+
+fn bar() -> ! {
+ loop {}
+}
+
+fn baz() -> Void {
+ loop {}
+}
+
+fn qux() {
+ foo();
+ bar();
+ baz();
+}
+
+fn main() {}