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