12 Foo { first: usize, second: usize },
13 Bar { other: Option<Other> },
17 fn test(x: Option<Test>) -> bool {
20 Test::Foo { first: 1024 | 2048, second: 2048 | 4096 }
21 | Test::Bar { other: Some(Other::One | Other::Two) },
31 assert!(test(Some(Test::Foo { first: 1024, second: 4096 })));
32 assert!(!test(Some(Test::Foo { first: 2048, second: 8192 })));
33 assert!(!test(Some(Test::Foo { first: 42, second: 2048 })));
34 assert!(test(Some(Test::Bar { other: Some(Other::One) })));
35 assert!(test(Some(Test::Bar { other: Some(Other::Two) })));
36 assert!(!test(Some(Test::Bar { other: Some(Other::Three) })));
37 assert!(!test(Some(Test::Bar { other: None })));
38 assert!(!test(Some(Test::Baz)));