1 error[E0569]: requires an `unsafe impl` declaration due to `#[may_dangle]` attribute
2 --> $DIR/dropck-eyepatch-implies-unsafe-impl.rs:32:1
4 32 | impl<#[may_dangle] A, B: fmt::Debug> Drop for Pt<A, B> {
6 33 | | //~^ ERROR requires an `unsafe impl` declaration due to `#[may_dangle]` attribute
8 35 | | // (unsafe to access self.1 due to #[may_dangle] on A)
9 36 | | fn drop(&mut self) { println!("drop {} {:?}", self.0, self.2); }
13 error[E0569]: requires an `unsafe impl` declaration due to `#[may_dangle]` attribute
14 --> $DIR/dropck-eyepatch-implies-unsafe-impl.rs:38:1
16 38 | impl<#[may_dangle] 'a, 'b, B: fmt::Debug> Drop for Pr<'a, 'b, B> {
18 39 | | //~^ ERROR requires an `unsafe impl` declaration due to `#[may_dangle]` attribute
20 41 | | // (unsafe to access self.1 due to #[may_dangle] on 'a)
21 42 | | fn drop(&mut self) { println!("drop {} {:?}", self.0, self.2); }
25 error: aborting due to 2 previous errors