rust/tests/ui/span/E0493.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

22 lines
242 B
Rust
Raw Normal View History

2016-08-23 13:35:59 +00:00
struct Foo {
a: u32
}
impl Drop for Foo {
fn drop(&mut self) {}
}
struct Bar {
a: u32
}
impl Drop for Bar {
fn drop(&mut self) {}
2016-08-23 13:35:59 +00:00
}
const F : Foo = (Foo { a : 0 }, Foo { a : 1 }).1;
//~^ ERROR destructor of
2016-08-23 13:35:59 +00:00
fn main() {
}