]> git.lizzy.rs Git - rust.git/blob - src/test/ui/suggestions/dont-suggest-dereference-on-arg.stderr
Rollup merge of #48892 - alexcrichton:thinlto-again, r=Mark-Simulacrum
[rust.git] / src / test / ui / suggestions / dont-suggest-dereference-on-arg.stderr
1 error[E0658]: non-reference pattern used to match a reference (see issue #42640)
2   --> $DIR/dont-suggest-dereference-on-arg.rs:16:18
3    |
4 LL |         .filter(|&(ref a, _)| foo(a))
5    |                  ^^^^^^^^^^^ help: consider using a reference: `&&(ref a, _)`
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`.