1 error[E0308]: mismatched types
2 --> $DIR/mut-pattern-mismatched.rs:6:10
5 | ^^ types differ in mutability
8 | --- this expression has type `&mut {integer}`
10 = note: expected mutable reference `&mut {integer}`
13 error[E0308]: mismatched types
14 --> $DIR/mut-pattern-mismatched.rs:15:9
17 | ^^^^^^ types differ in mutability
20 | --- this expression has type `&{integer}`
22 = note: expected reference `&{integer}`
23 found mutable reference `&mut _`
25 error: aborting due to 2 previous errors
27 For more information about this error, try `rustc --explain E0308`.