diff options
| author | y21 <30553356+y21@users.noreply.github.com> | 2023-04-23 21:34:42 +0200 |
|---|---|---|
| committer | y21 <30553356+y21@users.noreply.github.com> | 2023-04-23 21:34:42 +0200 |
| commit | e8726b20b2a64b4553c87d02a330fd2bc62064bd (patch) | |
| tree | 3e489974bcdf9e8ddecb3afbebe5b399f9f66b37 /tests/ui/redundant_pattern_matching_option.rs | |
| parent | 7a870aef1a0a599378eefb5253be479b82c1cc8d (diff) | |
| download | rust-e8726b20b2a64b4553c87d02a330fd2bc62064bd.tar.gz rust-e8726b20b2a64b4553c87d02a330fd2bc62064bd.zip | |
also check for rest pat in `redundant_pattern_matching`
Diffstat (limited to 'tests/ui/redundant_pattern_matching_option.rs')
| -rw-r--r-- | tests/ui/redundant_pattern_matching_option.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/ui/redundant_pattern_matching_option.rs b/tests/ui/redundant_pattern_matching_option.rs index 0b69e13f655..d6429426573 100644 --- a/tests/ui/redundant_pattern_matching_option.rs +++ b/tests/ui/redundant_pattern_matching_option.rs @@ -63,6 +63,8 @@ fn main() { } else { 3 }; + + if let Some(..) = gen_opt() {} } fn gen_opt() -> Option<()> { |
