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