]> git.lizzy.rs Git - rust.git/blob - src/test/ui/dropck/dropck-eyepatch-implies-unsafe-impl.stderr
Auto merge of #41258 - clarcharr:str_box_extras, r=Kimundi
[rust.git] / src / test / ui / dropck / dropck-eyepatch-implies-unsafe-impl.stderr
1 error[E0569]: requires an `unsafe impl` declaration due to `#[may_dangle]` attribute
2   --> $DIR/dropck-eyepatch-implies-unsafe-impl.rs:32:1
3    |
4 32 | / impl<#[may_dangle] A, B: fmt::Debug> Drop for Pt<A, B> {
5 33 | |     //~^ ERROR requires an `unsafe impl` declaration due to `#[may_dangle]` attribute
6 34 | |
7 35 | |     // (unsafe to access self.1  due to #[may_dangle] on A)
8 36 | |     fn drop(&mut self) { println!("drop {} {:?}", self.0, self.2); }
9 37 | | }
10    | |_^
11
12 error[E0569]: requires an `unsafe impl` declaration due to `#[may_dangle]` attribute
13   --> $DIR/dropck-eyepatch-implies-unsafe-impl.rs:38:1
14    |
15 38 | / impl<#[may_dangle] 'a, 'b, B: fmt::Debug> Drop for Pr<'a, 'b, B> {
16 39 | |     //~^ ERROR requires an `unsafe impl` declaration due to `#[may_dangle]` attribute
17 40 | |
18 41 | |     // (unsafe to access self.1 due to #[may_dangle] on 'a)
19 42 | |     fn drop(&mut self) { println!("drop {} {:?}", self.0, self.2); }
20 43 | | }
21    | |_^
22
23 error: aborting due to 2 previous errors
24