blob: 15195e7737d410bf6b7a21550e0d69b194081276 (
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:27:38
|
27 | let _: Pin<&mut PhantomPinned> = x.field; //~ ERROR E0308
| ----------------------- ^^^^^^^ expected struct `std::pin::Pin`, found `&mut std::marker::PhantomPinned`
| |
| expected due to this
|
= note: expected struct `std::pin::Pin<&mut std::marker::PhantomPinned>`
found mutable reference `&mut std::marker::PhantomPinned`
error[E0308]: mismatched types
--> $DIR/remove-attr-from-field.rs:31:38
|
31 | let _: Pin<&mut PhantomPinned> = x.field; //~ ERROR E0308
| ----------------------- ^^^^^^^ expected struct `std::pin::Pin`, found `&mut std::marker::PhantomPinned`
| |
| expected due to this
|
= note: expected struct `std::pin::Pin<&mut std::marker::PhantomPinned>`
found mutable reference `&mut std::marker::PhantomPinned`
|