• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1error[E0308]: mismatched types
2  --> tests/ui/pin_project/remove-attr-from-field.rs:30:38
3   |
430 |     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:34:38
14   |
1534 |     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