blob: 081504c53f54d17b9a390d0e10d1a47d67fbf55c [file] [log] [blame]
error[E0308]: mismatched types
--> tests/ui/cfg/cfg_attr-type-mismatch.rs:20:27
|
20 | let _: Pin<&mut u8> = x.f; //~ ERROR E0308
| ------------ ^^^ expected `Pin<&mut u8>`, found `&mut u8`
| |
| expected due to this
|
= note: expected struct `Pin<&mut u8>`
found mutable reference `&mut u8`
error[E0308]: mismatched types
--> tests/ui/cfg/cfg_attr-type-mismatch.rs:24:22
|
24 | let _: &mut u8 = x.f; //~ ERROR E0308
| ------- ^^^ expected `&mut u8`, found `Pin<&mut u8>`
| |
| expected due to this
|
= note: expected mutable reference `&mut u8`
found struct `Pin<&mut u8>`
help: consider mutably borrowing here
|
24 | let _: &mut u8 = &mut x.f; //~ ERROR E0308
| ++++