1 error: you don't need to add `&` to all patterns
2 --> $DIR/match_ref_pats.rs:6:9
5 LL | | &Some(v) => println!("{:?}", v),
6 LL | | &None => println!("none"),
10 = note: `-D clippy::match-ref-pats` implied by `-D warnings`
11 help: instead of prefixing all patterns with `&`, you can dereference the expression
14 LL | Some(v) => println!("{:?}", v),
15 LL | None => println!("none"),
18 error: you don't need to add `&` to all patterns
19 --> $DIR/match_ref_pats.rs:17:5
22 LL | | &(v, 1) => println!("{}", v),
23 LL | | _ => println!("none"),
26 help: instead of prefixing all patterns with `&`, you can dereference the expression
29 LL | (v, 1) => println!("{}", v),
32 error: you don't need to add `&` to both the expression and the patterns
33 --> $DIR/match_ref_pats.rs:23:5
36 LL | | &Some(v) => println!("{:?}", v),
37 LL | | &None => println!("none"),
43 LL | Some(v) => println!("{:?}", v),
44 LL | None => println!("none"),
47 error: you don't need to add `&` to all patterns
48 --> $DIR/match_ref_pats.rs:34:5
50 LL | / if let &None = a {
51 LL | | println!("none");
54 help: instead of prefixing all patterns with `&`, you can dereference the expression
56 LL | if let None = *a {
59 error: you don't need to add `&` to both the expression and the patterns
60 --> $DIR/match_ref_pats.rs:39:5
62 LL | / if let &None = &b {
63 LL | | println!("none");
68 LL | if let None = b {
71 error: you don't need to add `&` to all patterns
72 --> $DIR/match_ref_pats.rs:66:9
74 LL | / match foo_variant!(0) {
75 LL | | &Foo::A => println!("A"),
76 LL | | _ => println!("Wild"),
79 help: instead of prefixing all patterns with `&`, you can dereference the expression
81 LL | match *foo_variant!(0) {
82 LL | Foo::A => println!("A"),
85 error: aborting due to 6 previous errors