13 lines
186 B
Rust
13 lines
186 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");
|
|
}
|