summaryrefslogtreecommitdiffstats
path: root/src/test/ui/suggestions/issue-83892.rs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/test/ui/suggestions/issue-83892.rs11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/test/ui/suggestions/issue-83892.rs b/src/test/ui/suggestions/issue-83892.rs
new file mode 100644
index 000000000..1d56ecee8
--- /dev/null
+++ b/src/test/ui/suggestions/issue-83892.rs
@@ -0,0 +1,11 @@
+// run-rustfix
+
+fn func() -> u8 {
+ 0
+}
+
+fn main() {
+ match () {
+ () => func() //~ ERROR mismatched types
+ }
+}