|
LL | core::ptr::drop_in_place(x);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
- = note: BACKTRACE:
+ = note: BACKTRACE (of the first span):
= note: inside `<HasDrop as std::ops::Drop>::drop` at $DIR/drop_in_place_protector.rs:LL:CC
= note: inside `std::ptr::drop_in_place::<HasDrop> - shim(Some(HasDrop))` at RUSTLIB/core/src/ptr/mod.rs:LL:CC
= note: inside `std::ptr::drop_in_place::<(HasDrop, u8)> - shim(Some((HasDrop, u8)))` at RUSTLIB/core/src/ptr/mod.rs:LL:CC
|
LL | let x = core::ptr::addr_of!(x);
| ^^^^^^^^^^^^^^^^^^^^^^
- = note: BACKTRACE:
+ = note: BACKTRACE (of the first span):
= note: inside `std::ptr::drop_in_place::<u8> - shim(None)` at RUSTLIB/core/src/ptr/mod.rs:LL:CC
note: inside `main`
--> $DIR/drop_in_place_retag.rs:LL:CC
assert_eq!(v, 0);
let mut it = vec![[0u64; 0], [0u64; 0]].into_iter();
- it.advance_by(1);
+ it.advance_by(1).unwrap();
drop(it);
let mut it = vec![[0u64; 0], [0u64; 0]].into_iter();