rust/src/test/ui/span/E0493.rs
2018-12-25 21:08:33 -07:00

22 lines
270 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;
//~^ destructors cannot be evaluated at compile-time
fn main() {
}