rust/tests/ui/span/E0493.rs
2023-01-11 09:32:08 +00:00

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() {
}