blob: 286829911fee662a2745ad73dda6442726775d22 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
error[E0308]: mismatched types
--> $DIR/cfg_attr-type-mismatch.rs:19:27
|
19 | let _: Pin<&mut u8> = x.inner; //~ ERROR E0308
| ------------ ^^^^^^^ expected struct `std::pin::Pin`, found `&mut u8`
| |
| expected due to this
|
= note: expected struct `std::pin::Pin<&mut u8>`
found mutable reference `&mut u8`
error[E0308]: mismatched types
--> $DIR/cfg_attr-type-mismatch.rs:23:22
|
23 | let _: &mut u8 = x.inner; //~ ERROR E0308
| ------- ^^^^^^^
| | |
| | expected `&mut u8`, found struct `std::pin::Pin`
| | help: consider mutably borrowing here: `&mut x.inner`
| expected due to this
|
= note: expected mutable reference `&mut u8`
found struct `std::pin::Pin<&mut u8>`
|