|
| 1 | +error[E0308]: mismatched types |
| 2 | + --> $DIR/issue-102892.rs:15:26 |
| 3 | + | |
| 4 | +LL | let (a, b): (A, B) = &**arc; // suggests putting `&**arc` here too |
| 5 | + | ------ ^^^^^^ expected tuple, found `&(A, B)` |
| 6 | + | | |
| 7 | + | expected due to this |
| 8 | + | |
| 9 | + = note: expected tuple `(A, B)` |
| 10 | + found reference `&(A, B)` |
| 11 | +help: consider removing the borrow |
| 12 | + | |
| 13 | +LL - let (a, b): (A, B) = &**arc; // suggests putting `&**arc` here too |
| 14 | +LL + let (a, b): (A, B) = **arc; // suggests putting `&**arc` here too |
| 15 | + | |
| 16 | +help: alternatively, consider changing the type annotation |
| 17 | + | |
| 18 | +LL | let (a, b): &(A, B) = &**arc; // suggests putting `&**arc` here too |
| 19 | + | + |
| 20 | + |
| 21 | +error[E0308]: mismatched types |
| 22 | + --> $DIR/issue-102892.rs:20:32 |
| 23 | + | |
| 24 | +LL | let (a, b): ((A, B), A) = (&mut *mutation, &(**arc).0); // suggests putting `&**arc` here too |
| 25 | + | ^^^^^^^^^^^^^^ expected tuple, found `&mut (A, B)` |
| 26 | + | |
| 27 | + = note: expected tuple `(A, B)` |
| 28 | + found mutable reference `&mut (A, B)` |
| 29 | +help: consider removing the borrow |
| 30 | + | |
| 31 | +LL - let (a, b): ((A, B), A) = (&mut *mutation, &(**arc).0); // suggests putting `&**arc` here too |
| 32 | +LL + let (a, b): ((A, B), A) = (*mutation, &(**arc).0); // suggests putting `&**arc` here too |
| 33 | + | |
| 34 | +help: alternatively, consider changing the type annotation |
| 35 | + | |
| 36 | +LL | let (a, b): (&mut (A, B), A) = (&mut *mutation, &(**arc).0); // suggests putting `&**arc` here too |
| 37 | + | ++++ |
| 38 | + |
| 39 | +error[E0308]: mismatched types |
| 40 | + --> $DIR/issue-102892.rs:20:48 |
| 41 | + | |
| 42 | +LL | let (a, b): ((A, B), A) = (&mut *mutation, &(**arc).0); // suggests putting `&**arc` here too |
| 43 | + | ^^^^^^^^^^ expected struct `A`, found `&A` |
| 44 | + | |
| 45 | +help: consider removing the borrow |
| 46 | + | |
| 47 | +LL - let (a, b): ((A, B), A) = (&mut *mutation, &(**arc).0); // suggests putting `&**arc` here too |
| 48 | +LL + let (a, b): ((A, B), A) = (&mut *mutation, (**arc).0); // suggests putting `&**arc` here too |
| 49 | + | |
| 50 | +help: alternatively, consider changing the type annotation |
| 51 | + | |
| 52 | +LL | let (a, b): ((A, B), &A) = (&mut *mutation, &(**arc).0); // suggests putting `&**arc` here too |
| 53 | + | + |
| 54 | + |
| 55 | +error: aborting due to 3 previous errors |
| 56 | + |
| 57 | +For more information about this error, try `rustc --explain E0308`. |
0 commit comments