1 #![feature(slice_patterns)]
4 match "foo".to_string() {
6 //~^ ERROR expected an array or slice, found `std::string::String`
10 // Note that this one works with default binding modes.
20 [0] => {}, //~ ERROR pattern requires
25 [0, 1, 2, 3, x @ ..] => {} //~ ERROR pattern requires
28 match does_not_exist { //~ ERROR cannot find value `does_not_exist` in this scope
33 fn another_fn_to_avoid_suppression() {
34 match Default::default()
36 [] => {} //~ ERROR type annotations needed