]> git.lizzy.rs Git - rust.git/blob - src/test/ui/pat-slice-old-style.stderr
Auto merge of #47926 - mikhail-m1:subslice_pattern_array_drop2, r=nikomatsakis
[rust.git] / src / test / ui / pat-slice-old-style.stderr
1 error[E0658]: non-reference pattern used to match a reference (see issue #42640)
2   --> $DIR/pat-slice-old-style.rs:19:9
3    |
4 19 |         [a, b..] => {},
5    |         ^^^^^^^^ help: consider using a reference: `&[a, b..]`
6    |
7    = help: add #![feature(match_default_bindings)] to the crate attributes to enable
8
9 error: aborting due to previous error
10