diff options
Diffstat (limited to 'tests/ui/block-result/issue-5500.rs')
-rw-r--r-- | tests/ui/block-result/issue-5500.rs | 7 |
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 +} |