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