]> git.lizzy.rs Git - rust.git/blobdiff - 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
index 29c41c49cc4150e82dfab1efa5a05380c2d73b79..6fa5b18a14e863d6be7c2ba7275ec7c13075bbc2 100644 (file)
@@ -1,10 +1,11 @@
 error[E0658]: non-reference pattern used to match a reference (see issue #42640)
   --> $DIR/pat-slice-old-style.rs:19:9
    |
-19 |         [a, b..] => {},
+LL |         [a, b..] => {},
    |         ^^^^^^^^ help: consider using a reference: `&[a, b..]`
    |
    = help: add #![feature(match_default_bindings)] to the crate attributes to enable
 
 error: aborting due to previous error
 
+For more information about this error, try `rustc --explain E0658`.