1 #![feature(box_patterns)]
2 #![feature(box_syntax)]
14 fn f
<G
>(s
: &S
, g
: G
) where G
: FnOnce(&S
) {
19 let s
= S { x: box E::Bar(box 42) }
;
22 match hellothere
.x
{ //~ ERROR cannot move out
23 //~| cannot move out of borrowed content
25 box E
::Bar(x
) => println
!("{}", x
.to_string()),