2016-08-23 08:35:59 -05:00
|
|
|
struct Foo {
|
|
|
|
a: u32
|
|
|
|
}
|
|
|
|
|
|
|
|
impl Drop for Foo {
|
|
|
|
fn drop(&mut self) {}
|
2016-09-02 04:44:46 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
struct Bar {
|
|
|
|
a: u32
|
|
|
|
}
|
|
|
|
|
|
|
|
impl Drop for Bar {
|
|
|
|
fn drop(&mut self) {}
|
2016-08-23 08:35:59 -05:00
|
|
|
}
|
|
|
|
|
2017-08-31 04:21:11 -05:00
|
|
|
const F : Foo = (Foo { a : 0 }, Foo { a : 1 }).1;
|
2022-09-23 09:22:36 -05:00
|
|
|
//~^ ERROR destructor of
|
2016-08-23 08:35:59 -05:00
|
|
|
|
|
|
|
fn main() {
|
|
|
|
}
|