]>
git.proxmox.com Git - rustc.git/blob - tests/ui/array-slice-vec/slice-pat-type-mismatches.rs
2 match "foo".to_string() {
4 //~^ ERROR expected an array or slice, found `String`
8 // Note that this one works with default binding modes.
18 [0] => {}
, //~ ERROR pattern requires
23 [0, 1, 2, 3, x @
..] => {}
//~ ERROR pattern requires
26 match does_not_exist
{ //~ ERROR cannot find value `does_not_exist` in this scope
31 fn another_fn_to_avoid_suppression() {
32 match Default
::default()
34 [] => {}
//~ ERROR type annotations needed