13 let s = S { x: E::Bar("hello".to_string()) };
14 match &s.x { //~ ERROR cannot move
16 &E::Bar(identifier) => f(identifier.clone())
20 &E::Bar(ref identifier) => println!("{}", *identifier)
22 if let &E::Bar(identifier) = &s.x { //~ ERROR cannot move
23 f(identifier.clone());
25 let &E::Bar(identifier) = &s.x else { //~ ERROR cannot move
28 f(identifier.clone());