rust/tests/compile-fail/panic/double_panic.rs
2022-04-30 10:40:35 -07:00

13 lines
185 B
Rust

// error-pattern: the program aborted
struct Foo;
impl Drop for Foo {
fn drop(&mut self) {
panic!("second");
}
}
fn main() {
let _foo = Foo;
panic!("first");
}