]>
git.proxmox.com Git - rustc.git/blob - src/test/ui/or-patterns/mix-with-wild.rs
1 // Test that an or-pattern works with a wild pattern. This tests two things:
3 // 1) The Wild pattern should cause the pattern to always succeed.
4 // 2) or-patterns should work with simplifyable patterns.
8 pub fn test(x
: Option
<usize>) -> bool
{
16 assert
!(test(Some(42)));