]> git.lizzy.rs Git - rust.git/blob - src/test/ui/dropck/dropck-eyepatch-implies-unsafe-impl.stderr
Remove unused import.
[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    |  _^ starting here...
6 33 | |     //~^ ERROR requires an `unsafe impl` declaration due to `#[may_dangle]` attribute
7 34 | |
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); }
10 37 | | }
11    | |_^ ...ending here
12
13 error[E0569]: requires an `unsafe impl` declaration due to `#[may_dangle]` attribute
14   --> $DIR/dropck-eyepatch-implies-unsafe-impl.rs:38:1
15    |
16 38 |   impl<#[may_dangle] 'a, 'b, B: fmt::Debug> Drop for Pr<'a, 'b, B> {
17    |  _^ starting here...
18 39 | |     //~^ ERROR requires an `unsafe impl` declaration due to `#[may_dangle]` attribute
19 40 | |
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); }
22 43 | | }
23    | |_^ ...ending here
24
25 error: aborting due to 2 previous errors
26