mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-27 01:04:03 +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() {
|
|
}
|