1 error[E0529]: expected an array or slice, found `Vec<i32>`
2 --> $DIR/issue-91328.rs:10:12
5 | - help: consider using `as_deref` here: `r.as_deref()`
7 LL | Ok([a, b]) => a + b,
8 | ^^^^^^ pattern cannot match with input type `Vec<i32>`
10 error[E0529]: expected an array or slice, found `Vec<i32>`
11 --> $DIR/issue-91328.rs:20:14
14 | - help: consider using `as_deref` here: `o.as_deref()`
16 LL | Some([a, b]) => a + b,
17 | ^^^^^^ pattern cannot match with input type `Vec<i32>`
19 error[E0529]: expected an array or slice, found `Vec<i32>`
20 --> $DIR/issue-91328.rs:30:9
23 | - help: consider slicing here: `v[..]`
26 | ^^^^^^ pattern cannot match with input type `Vec<i32>`
28 error[E0529]: expected an array or slice, found `Box<[i32; 2]>`
29 --> $DIR/issue-91328.rs:40:14
32 | - help: consider using `as_deref` here: `a.as_deref()`
34 LL | Some([a, b]) => a + b,
35 | ^^^^^^ pattern cannot match with input type `Box<[i32; 2]>`
37 error: aborting due to 4 previous errors
39 For more information about this error, try `rustc --explain E0529`.