mirror of
https://github.com/rust-lang/rust.git
synced 2024-10-30 14:01:51 +00:00
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() {
|
|
}
|