1 error[E0569]: requires an `unsafe impl` declaration due to `#[may_dangle]` attribute
2 --> $DIR/dropck-eyepatch-implies-unsafe-impl.rs:21:1
4 LL | / impl<#[may_dangle] A, B: fmt::Debug> Drop for Pt<A, B> {
7 LL | | // (unsafe to access self.1 due to #[may_dangle] on A)
8 LL | | fn drop(&mut self) { println!("drop {} {:?}", self.0, self.2); }
12 error[E0569]: requires an `unsafe impl` declaration due to `#[may_dangle]` attribute
13 --> $DIR/dropck-eyepatch-implies-unsafe-impl.rs:27:1
15 LL | / impl<#[may_dangle] 'a, 'b, B: fmt::Debug> Drop for Pr<'a, 'b, B> {
18 LL | | // (unsafe to access self.1 due to #[may_dangle] on 'a)
19 LL | | fn drop(&mut self) { println!("drop {} {:?}", self.0, self.2); }
23 error: aborting due to 2 previous errors
25 For more information about this error, try `rustc --explain E0569`.