22 lines
242 B
Rust
22 lines
242 B
Rust
struct Foo {
|
|
a: u32
|
|
}
|
|
|
|
impl Drop for Foo {
|
|
fn drop(&mut self) {}
|
|
}
|
|
|
|
struct Bar {
|
|
a: u32
|
|
}
|
|
|
|
impl Drop for Bar {
|
|
fn drop(&mut self) {}
|
|
}
|
|
|
|
const F : Foo = (Foo { a : 0 }, Foo { a : 1 }).1;
|
|
//~^ ERROR destructor of
|
|
|
|
fn main() {
|
|
}
|