9 let _moved @ _from = String::from("foo"); //~ ERROR
10 let _moved @ ref _from = String::from("foo"); //~ ERROR
11 let ref _moved @ _from = String::from("foo"); //~ ERROR
13 let ref _moved @ ref _from = String::from("foo"); // ok
14 let _moved @ S { f } = S { f: String::from("foo") }; //~ ERROR
15 let ref _moved @ S { f } = S { f: String::from("foo") }; //~ ERROR
17 let ref _moved @ S { ref f } = S { f: String::from("foo") }; // ok
18 let _moved @ S { ref f } = S { f: String::from("foo") }; //~ ERROR