auto merge of #9635 : catamorphism/rust/issue-7999, r=catamorphism
Closes #7999
This commit is contained in:
commit
5c016857b7
1 changed files with 1 additions and 2 deletions
|
|
@ -9,7 +9,6 @@
|
|||
// except according to those terms.
|
||||
|
||||
// Make sure the destructor is run for unit-like structs.
|
||||
// xfail-fast
|
||||
|
||||
use std::task;
|
||||
|
||||
|
|
@ -21,7 +20,7 @@ impl Drop for Foo {
|
|||
}
|
||||
}
|
||||
|
||||
fn main() {
|
||||
pub fn main() {
|
||||
let x = do task::try {
|
||||
let _b = Foo;
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue