diff options
Diffstat (limited to 'tests/ui/cfg/cfg_attr-type-mismatch.stderr')
-rw-r--r-- | tests/ui/cfg/cfg_attr-type-mismatch.stderr | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/tests/ui/cfg/cfg_attr-type-mismatch.stderr b/tests/ui/cfg/cfg_attr-type-mismatch.stderr index 2868299..89172a2 100644 --- a/tests/ui/cfg/cfg_attr-type-mismatch.stderr +++ b/tests/ui/cfg/cfg_attr-type-mismatch.stderr @@ -1,23 +1,23 @@ error[E0308]: mismatched types --> $DIR/cfg_attr-type-mismatch.rs:19:27 | -19 | let _: Pin<&mut u8> = x.inner; //~ ERROR E0308 - | ------------ ^^^^^^^ expected struct `std::pin::Pin`, found `&mut u8` +19 | let _: Pin<&mut u8> = x.f; //~ ERROR E0308 + | ------------ ^^^ expected struct `Pin`, found `&mut u8` | | | expected due to this | - = note: expected struct `std::pin::Pin<&mut u8>` + = note: expected struct `Pin<&mut u8>` found mutable reference `&mut u8` error[E0308]: mismatched types --> $DIR/cfg_attr-type-mismatch.rs:23:22 | -23 | let _: &mut u8 = x.inner; //~ ERROR E0308 - | ------- ^^^^^^^ +23 | let _: &mut u8 = x.f; //~ ERROR E0308 + | ------- ^^^ | | | - | | expected `&mut u8`, found struct `std::pin::Pin` - | | help: consider mutably borrowing here: `&mut x.inner` + | | expected `&mut u8`, found struct `Pin` + | | help: consider mutably borrowing here: `&mut x.f` | expected due to this | = note: expected mutable reference `&mut u8` - found struct `std::pin::Pin<&mut u8>` + found struct `Pin<&mut u8>` |