]>
git.proxmox.com Git - rustc.git/blob - src/test/run-pass/issues/issue-11552.rs
2 #![feature(box_patterns)]
3 #![feature(box_syntax)]
9 Cell(Box
<Noun
>, Box
<Noun
>)
12 fn fas(n
: &Noun
) -> Noun
15 &Noun
::Cell(box Noun
::Atom(2), box Noun
::Cell(ref a
, _
)) => (**a
).clone(),
16 _
=> panic
!("Invalid fas pattern")
21 fas(&Noun
::Cell(box Noun
::Atom(2), box Noun
::Cell(box Noun
::Atom(2), box Noun
::Atom(3))));