blob: ad4100205f2737c1dd9228accfb0b9284c257df8 [file] [log] [blame]
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;
//~^ destructors cannot be evaluated at compile-time
fn main() {
}