error: type of pattern does not match the expression type
  --> $DIR/pattern_tuples.rs:11:9
   |
LL |     let TupleStruct(_) = ref_value;
   |         ^^^^^^^^^^^^^^
   |
   = note: `-D clippy::pattern-type-mismatch` implied by `-D warnings`
   = help: use `*` to dereference the match expression or explicitly match against a `&_` pattern and adjust the enclosed variable bindings

error: type of pattern does not match the expression type
  --> $DIR/pattern_tuples.rs:12:25
   |
LL |     if let &TupleStruct(Some(_)) = ref_value {}
   |                         ^^^^^^^
   |
   = help: explicitly match against a `&_` pattern and adjust the enclosed variable bindings

error: type of pattern does not match the expression type
  --> $DIR/pattern_tuples.rs:13:24
   |
LL |     if let TupleStruct(Some(_)) = *ref_value {}
   |                        ^^^^^^^
   |
   = help: explicitly match against a `&_` pattern and adjust the enclosed variable bindings

error: type of pattern does not match the expression type
  --> $DIR/pattern_tuples.rs:30:12
   |
LL |     if let TupleEnum::Var(_) = ref_value {}
   |            ^^^^^^^^^^^^^^^^^
   |
   = help: use `*` to dereference the match expression or explicitly match against a `&_` pattern and adjust the enclosed variable bindings

error: type of pattern does not match the expression type
  --> $DIR/pattern_tuples.rs:31:28
   |
LL |     if let &TupleEnum::Var(Some(_)) = ref_value {}
   |                            ^^^^^^^
   |
   = help: explicitly match against a `&_` pattern and adjust the enclosed variable bindings

error: type of pattern does not match the expression type
  --> $DIR/pattern_tuples.rs:32:27
   |
LL |     if let TupleEnum::Var(Some(_)) = *ref_value {}
   |                           ^^^^^^^
   |
   = help: explicitly match against a `&_` pattern and adjust the enclosed variable bindings

error: type of pattern does not match the expression type
  --> $DIR/pattern_tuples.rs:33:12
   |
LL |     if let TupleEnum::Empty = ref_value {}
   |            ^^^^^^^^^^^^^^^^
   |
   = help: use `*` to dereference the match expression or explicitly match against a `&_` pattern and adjust the enclosed variable bindings

error: type of pattern does not match the expression type
  --> $DIR/pattern_tuples.rs:48:9
   |
LL |     let (_a, _b) = ref_value;
   |         ^^^^^^^^
   |
   = help: use `*` to dereference the match expression or explicitly match against a `&_` pattern and adjust the enclosed variable bindings

error: type of pattern does not match the expression type
  --> $DIR/pattern_tuples.rs:49:18
   |
LL |     if let &(_a, Some(_)) = ref_value {}
   |                  ^^^^^^^
   |
   = help: explicitly match against a `&_` pattern and adjust the enclosed variable bindings

error: type of pattern does not match the expression type
  --> $DIR/pattern_tuples.rs:50:17
   |
LL |     if let (_a, Some(_)) = *ref_value {}
   |                 ^^^^^^^
   |
   = help: explicitly match against a `&_` pattern and adjust the enclosed variable bindings

error: aborting due to 10 previous errors

