summaryrefslogtreecommitdiffstats
path: root/src/tools/clippy/tests/ui/pattern_type_mismatch/mutability.stderr
blob: f21e1894af2a2ffefc6c36413029034cf4ef8d4e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
error: type of pattern does not match the expression type
  --> $DIR/mutability.rs:9:9
   |
LL |         Some(_) => (),
   |         ^^^^^^^
   |
   = help: use `*` to dereference the match expression or explicitly match against a `&_` pattern and adjust the enclosed variable bindings
   = note: `-D clippy::pattern-type-mismatch` implied by `-D warnings`
   = help: to override `-D warnings` add `#[allow(clippy::pattern_type_mismatch)]`

error: type of pattern does not match the expression type
  --> $DIR/mutability.rs:16:9
   |
LL |         Some(_) => (),
   |         ^^^^^^^
   |
   = help: use `*` to dereference the match expression or explicitly match against a `&mut _` pattern and adjust the enclosed variable bindings

error: aborting due to 2 previous errors