]> git.lizzy.rs Git - rust.git/blob - src/tools/clippy/tests/ui/pattern_type_mismatch/mutability.stderr
Merge commit '2ca58e7dda4a9eb142599638c59dc04d15961175' into clippyup
[rust.git] / src / tools / clippy / tests / ui / pattern_type_mismatch / mutability.stderr
1 error: type of pattern does not match the expression type
2   --> $DIR/mutability.rs:9:9
3    |
4 LL |         Some(_) => (),
5    |         ^^^^^^^
6    |
7    = note: `-D clippy::pattern-type-mismatch` implied by `-D warnings`
8    = help: use `*` to dereference the match expression or explicitly match against a `&_` pattern and adjust the enclosed variable bindings
9
10 error: type of pattern does not match the expression type
11   --> $DIR/mutability.rs:15:9
12    |
13 LL |         Some(_) => (),
14    |         ^^^^^^^
15    |
16    = help: use `*` to dereference the match expression or explicitly match against a `&mut _` pattern and adjust the enclosed variable bindings
17
18 error: aborting due to 2 previous errors
19