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"),
27 help: instead of prefixing all patterns with `&`, you can dereference the expression
30 LL | (v, 1) => println!("{}", v),
33 error: you don't need to add `&` to both the expression and the patterns
34 --> $DIR/match_ref_pats.rs:23:5
37 LL | | &Some(v) => println!("{:?}", v),
38 LL | | &None => println!("none"),
45 LL | Some(v) => println!("{:?}", v),
46 LL | None => println!("none"),
49 error: you don't need to add `&` to all patterns
50 --> $DIR/match_ref_pats.rs:35:5
52 LL | / if let &None = a {
53 LL | | println!("none");
57 help: instead of prefixing all patterns with `&`, you can dereference the expression
59 LL | if let None = *a {
62 error: you don't need to add `&` to both the expression and the patterns
63 --> $DIR/match_ref_pats.rs:40:5
65 LL | / if let &None = &b {
66 LL | | println!("none");
72 LL | if let None = b {
75 error: you don't need to add `&` to all patterns
76 --> $DIR/match_ref_pats.rs:67:9
78 LL | / match foo_variant!(0) {
79 LL | | &Foo::A => println!("A"),
80 LL | | _ => println!("Wild"),
84 help: instead of prefixing all patterns with `&`, you can dereference the expression
86 LL | match *foo_variant!(0) {
87 LL | Foo::A => println!("A"),
90 error: aborting due to 6 previous errors