diff options
Diffstat (limited to 'src/test/ui/mir/mir_drop_panics.rs')
-rw-r--r-- | src/test/ui/mir/mir_drop_panics.rs | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/src/test/ui/mir/mir_drop_panics.rs b/src/test/ui/mir/mir_drop_panics.rs deleted file mode 100644 index 0d00426d6..000000000 --- a/src/test/ui/mir/mir_drop_panics.rs +++ /dev/null @@ -1,24 +0,0 @@ -// run-fail -// needs-unwind -// error-pattern:panic 1 -// error-pattern:drop 2 - -struct Droppable(u32); -impl Drop for Droppable { - fn drop(&mut self) { - if self.0 == 1 { - panic!("panic 1"); - } else { - eprintln!("drop {}", self.0); - } - } -} - -fn mir() { - let x = Droppable(2); - let y = Droppable(1); -} - -fn main() { - mir(); -} |