1 // ignore-tidy-linelength
3 #![feature(box_patterns)]
4 #![feature(box_syntax)]
16 fn f<G>(s: &S, g: G) where G: FnOnce(&S) {
21 let s = S { x: box E::Bar(box 42) };
24 match hellothere.x { //~ ERROR cannot move out
25 //~| cannot move out of borrowed content
27 box E::Bar(x) => println!("{}", x.to_string()),