]> git.lizzy.rs Git - rust.git/blob - tests/ui/typeck/issue-91328.stderr
Auto merge of #105102 - compiler-errors:copy-impl-considering-regions, r=lcnr
[rust.git] / tests / ui / typeck / issue-91328.stderr
1 error[E0529]: expected an array or slice, found `Vec<i32>`
2   --> $DIR/issue-91328.rs:10:12
3    |
4 LL |     match r {
5    |           - help: consider using `as_deref` here: `r.as_deref()`
6 LL |
7 LL |         Ok([a, b]) => a + b,
8    |            ^^^^^^ pattern cannot match with input type `Vec<i32>`
9
10 error[E0529]: expected an array or slice, found `Vec<i32>`
11   --> $DIR/issue-91328.rs:20:14
12    |
13 LL |     match o {
14    |           - help: consider using `as_deref` here: `o.as_deref()`
15 LL |
16 LL |         Some([a, b]) => a + b,
17    |              ^^^^^^ pattern cannot match with input type `Vec<i32>`
18
19 error[E0529]: expected an array or slice, found `Vec<i32>`
20   --> $DIR/issue-91328.rs:30:9
21    |
22 LL |     match v {
23    |           - help: consider slicing here: `v[..]`
24 LL |
25 LL |         [a, b] => a + b,
26    |         ^^^^^^ pattern cannot match with input type `Vec<i32>`
27
28 error[E0529]: expected an array or slice, found `Box<[i32; 2]>`
29   --> $DIR/issue-91328.rs:40:14
30    |
31 LL |     match a {
32    |           - help: consider using `as_deref` here: `a.as_deref()`
33 LL |
34 LL |         Some([a, b]) => a + b,
35    |              ^^^^^^ pattern cannot match with input type `Box<[i32; 2]>`
36
37 error: aborting due to 4 previous errors
38
39 For more information about this error, try `rustc --explain E0529`.