summaryrefslogtreecommitdiffstats
path: root/src/test/ui/block-result/issue-5500.rs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/test/ui/block-result/issue-5500.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/test/ui/block-result/issue-5500.rs b/src/test/ui/block-result/issue-5500.rs
new file mode 100644
index 000000000..577987a45
--- /dev/null
+++ b/src/test/ui/block-result/issue-5500.rs
@@ -0,0 +1,7 @@
+fn main() {
+ &panic!()
+ //~^ ERROR mismatched types
+ //~| expected unit type `()`
+ //~| found reference `&_`
+ //~| expected `()`, found reference
+}