1error[E0308]: mismatched types
2  --> tests/ui/pin_project/remove-attr-from-field.rs:28:38
3   |
428 |     let _: Pin<&mut PhantomPinned> = x.f; //~ ERROR E0308
5   |            -----------------------   ^^^ expected `Pin<&mut PhantomPinned>`, found `&mut PhantomPinned`
6   |            |
7   |            expected due to this
8   |
9   = note:         expected struct `Pin<&mut PhantomPinned>`
10           found mutable reference `&mut PhantomPinned`
11
12error[E0308]: mismatched types
13  --> tests/ui/pin_project/remove-attr-from-field.rs:32:38
14   |
1532 |     let _: Pin<&mut PhantomPinned> = x.f; //~ ERROR E0308
16   |            -----------------------   ^^^ expected `Pin<&mut PhantomPinned>`, found `&mut PhantomPinned`
17   |            |
18   |            expected due to this
19   |
20   = note:         expected struct `Pin<&mut PhantomPinned>`
21           found mutable reference `&mut PhantomPinned`
22