fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #66089 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum4560ea788cb

1.39.0
550 B21 linesraw
1error[E0308]: mismatched types
2  --> $DIR/mut-pattern-mismatched.rs:6:10
3   |
4LL |      let &_
5   |          ^^ types differ in mutability
6   |
7   = note: expected type `&mut {integer}`
8              found type `&_`
9
10error[E0308]: mismatched types
11  --> $DIR/mut-pattern-mismatched.rs:15:9
12   |
13LL |     let &mut _
14   |         ^^^^^^ types differ in mutability
15   |
16   = note: expected type `&{integer}`
17              found type `&mut _`
18
19error: aborting due to 2 previous errors
20
21For more information about this error, try `rustc --explain E0308`.