• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1error[E0308]: mismatched types
2  --> $DIR/remove-attr-from-field.rs:27:38
3   |
427 |     let _: Pin<&mut PhantomPinned> = x.f; //~ ERROR E0308
5   |            -----------------------   ^^^ expected struct `Pin`, 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  --> $DIR/remove-attr-from-field.rs:31:38
14   |
1531 |     let _: Pin<&mut PhantomPinned> = x.f; //~ ERROR E0308
16   |            -----------------------   ^^^ expected struct `Pin`, found `&mut PhantomPinned`
17   |            |
18   |            expected due to this
19   |
20   = note:         expected struct `Pin<&mut PhantomPinned>`
21           found mutable reference `&mut PhantomPinned`
22