]> git.lizzy.rs Git - rust.git/blob - src/test/ui/mut/mut-pattern-mismatched.stderr
Rollup merge of #59041 - saleemjaffer:trait_doc_comment_better_error_msg, r=pnkfelix
[rust.git] / src / test / ui / mut / mut-pattern-mismatched.stderr
1 error[E0308]: mismatched types
2   --> $DIR/mut-pattern-mismatched.rs:6:10
3    |
4 LL |      let &_
5    |          ^^ types differ in mutability
6    |
7    = note: expected type `&mut {integer}`
8               found type `&_`
9
10 error[E0308]: mismatched types
11   --> $DIR/mut-pattern-mismatched.rs:15:9
12    |
13 LL |     let &mut _
14    |         ^^^^^^ types differ in mutability
15    |
16    = note: expected type `&{integer}`
17               found type `&mut _`
18
19 error: aborting due to 2 previous errors
20
21 For more information about this error, try `rustc --explain E0308`.