1 // Test that we do not permit moves from &[] matched by a vec pattern.
3 #[derive(Clone, Debug)]
10 Foo { string: "foo".to_string() },
11 Foo { string: "bar".to_string() },
12 Foo { string: "baz".to_string() }
16 [_, ref tail @ ..] => {
18 //~^ ERROR cannot move out of type `[Foo]`
20 Foo { string: b }] => {
26 let z = tail[0].clone();