diff options
Diffstat (limited to 'tests/ui/cfg/cfg_attr-type-mismatch.stderr')
-rw-r--r-- | tests/ui/cfg/cfg_attr-type-mismatch.stderr | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/tests/ui/cfg/cfg_attr-type-mismatch.stderr b/tests/ui/cfg/cfg_attr-type-mismatch.stderr index 366d9c7..081504c 100644 --- a/tests/ui/cfg/cfg_attr-type-mismatch.stderr +++ b/tests/ui/cfg/cfg_attr-type-mismatch.stderr @@ -2,7 +2,7 @@ error[E0308]: mismatched types --> tests/ui/cfg/cfg_attr-type-mismatch.rs:20:27 | 20 | let _: Pin<&mut u8> = x.f; //~ ERROR E0308 - | ------------ ^^^ expected struct `Pin`, found `&mut u8` + | ------------ ^^^ expected `Pin<&mut u8>`, found `&mut u8` | | | expected due to this | @@ -13,11 +13,13 @@ 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 struct `Pin` - | | help: consider mutably borrowing here: `&mut x.f` + | ------- ^^^ 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 + | ++++ |