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