]> git.lizzy.rs Git - rust.git/blob - src/test/ui/typeck/issue-91328.stderr
Move `{core,std}::stream::Stream` to `{core,std}::async_iter::AsyncIterator`.
[rust.git] / src / test / 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: aborting due to 3 previous errors
29
30 For more information about this error, try `rustc --explain E0529`.