mirror of
https://github.com/rust-lang/rust.git
synced 2026-06-01 22:18:23 +03:00
12 lines
196 B
Rust
12 lines
196 B
Rust
// error-pattern: the evaluated program aborted
|
|
struct Foo;
|
|
impl Drop for Foo {
|
|
fn drop(&mut self) {
|
|
panic!("second");
|
|
}
|
|
}
|
|
fn main() {
|
|
let _foo = Foo;
|
|
panic!("first");
|
|
}
|