]>
git.proxmox.com Git - rustc.git/blob - src/test/ui/mir/mir_codegen_calls_diverging_drops.rs
2 // error-pattern:diverging_fn called
3 // error-pattern:0 dropped
4 // needs-unwind this test checks that a destructor is called after panicking
7 impl Drop
for Droppable
{
9 eprintln
!("{} dropped", self.0);
13 fn diverging_fn() -> ! {
14 panic
!("diverging_fn called")
17 fn mir(d
: Droppable
) {