1 // Regression test for #87017.
6 fn foo() -> Vec<i32> { vec![1, 2, 3] }
8 if let [_, _, _] = foo() {}
9 //~^ ERROR: expected an array or slice
10 //~| HELP: consider slicing here
13 //~^ ERROR: expected an array or slice
14 //~| HELP: consider slicing here
17 //~^ ERROR: expected an array or slice
18 //~| HELP: consider slicing here
22 //~^ HELP: consider slicing here
24 //~^ ERROR: expected an array or slice