fork/rust

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

borsAuto merge of #69444 - pietroalbini:stable-next-final-v2-new, r=pietroalbinif3e1a954d2e

1.41.1
596 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 mutable reference `&mut {integer}`
8                      found reference `&_`
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 reference `&{integer}`
17           found mutable reference `&mut _`
18
19error: aborting due to 2 previous errors
20
21For more information about this error, try `rustc --explain E0308`.