]> git.lizzy.rs Git - rust.git/blob - tests/ui/mismatched_types/issue-106182.stderr
Rollup merge of #107061 - compiler-errors:new-solver-new-candidates-3, r=lcnr
[rust.git] / tests / ui / mismatched_types / issue-106182.stderr
1 error[E0308]: mismatched types
2   --> $DIR/issue-106182.rs:7:12
3    |
4 LL |     match x {
5    |           - this expression has type `&_S`
6 LL |         _S(& (mut _y), _v) => {
7    |            ^^^^^^^^^^ expected `u32`, found reference
8    |
9    = note:   expected type `u32`
10            found reference `&_`
11 help: consider removing `&` from the pattern
12    |
13 LL |         _S(mut _y, _v) => {
14    |            ~~~~~~
15
16 error: aborting due to previous error
17
18 For more information about this error, try `rustc --explain E0308`.