aboutsummaryrefslogtreecommitdiff
path: root/tests/ui/pin_project/remove-attr-from-field.stderr
blob: 486bc00ba2d9757ebd6b36f1fdf9665e28e3c9c9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
error[E0308]: mismatched types
  --> $DIR/remove-attr-from-field.rs:28:38
   |
28 |     let _: Pin<&mut PhantomPinned> = x.f; //~ ERROR E0308
   |            -----------------------   ^^^ expected struct `Pin`, found `&mut PhantomPinned`
   |            |
   |            expected due to this
   |
   = note:         expected struct `Pin<&mut PhantomPinned>`
           found mutable reference `&mut PhantomPinned`

error[E0308]: mismatched types
  --> $DIR/remove-attr-from-field.rs:32:38
   |
32 |     let _: Pin<&mut PhantomPinned> = x.f; //~ ERROR E0308
   |            -----------------------   ^^^ expected struct `Pin`, found `&mut PhantomPinned`
   |            |
   |            expected due to this
   |
   = note:         expected struct `Pin<&mut PhantomPinned>`
           found mutable reference `&mut PhantomPinned`