]>
git.proxmox.com Git - rustc.git/blob - src/test/ui/match/issue-42679.rs
2 #![feature(box_patterns)]
4 #[derive(Debug, PartialEq)]
11 let a
= Box
::new(Test
::Foo(10));
12 let b
= Box
::new(Test
::Bar(-20));
14 (_
, box Test
::Foo(_
)) => unreachable
!(),
15 (box Test
::Foo(x
), b
) => {
17 assert_eq
!(b
, Box
::new(Test
::Bar(-20)));