]> git.proxmox.com Git - rustc.git/blob - src/test/ui/mut/mut-pattern-mismatched.stderr
New upstream version 1.41.1+dfsg1
[rustc.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 mutable reference `&mut {integer}`
8 found reference `&_`
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 reference `&{integer}`
17 found mutable reference `&mut _`
18
19 error: aborting due to 2 previous errors
20
21 For more information about this error, try `rustc --explain E0308`.