diff options
Diffstat (limited to 'src/test/ui/pattern/suggest-adding-appropriate-missing-pattern-excluding-comments.fixed')
-rw-r--r-- | src/test/ui/pattern/suggest-adding-appropriate-missing-pattern-excluding-comments.fixed | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/test/ui/pattern/suggest-adding-appropriate-missing-pattern-excluding-comments.fixed b/src/test/ui/pattern/suggest-adding-appropriate-missing-pattern-excluding-comments.fixed new file mode 100644 index 000000000..b28dce881 --- /dev/null +++ b/src/test/ui/pattern/suggest-adding-appropriate-missing-pattern-excluding-comments.fixed @@ -0,0 +1,10 @@ +// run-rustfix + +fn main() { + match Some(1) { //~ ERROR non-exhaustive patterns: `None` not covered + Some(1) => {} + // hello + Some(_) => {} + None => todo!() + } +} |