diff options
Diffstat (limited to 'tests/ui/rfcs/rfc-2497-if-let-chains/issue-88498.rs')
-rw-r--r-- | tests/ui/rfcs/rfc-2497-if-let-chains/issue-88498.rs | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/ui/rfcs/rfc-2497-if-let-chains/issue-88498.rs b/tests/ui/rfcs/rfc-2497-if-let-chains/issue-88498.rs new file mode 100644 index 000000000..3eb8a9ad0 --- /dev/null +++ b/tests/ui/rfcs/rfc-2497-if-let-chains/issue-88498.rs @@ -0,0 +1,16 @@ +// check-pass + +pub enum UnOp { + Not(Vec<()>), +} + +pub fn foo() { + if let Some(x) = None { + match x { + UnOp::Not(_) => {} + } + } +} + +fn main() { +} |