]> git.lizzy.rs Git - rust.git/blob - src/test/ui/pat-slice-old-style.stderr
Auto merge of #49304 - sinkuu:impl_trait_rustdoc, r=QuietMisdreavus
[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 LL |         [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
11 For more information about this error, try `rustc --explain E0658`.