auto merge of #9635 : catamorphism/rust/issue-7999, r=catamorphism
Closes #7999
This commit is contained in:
commit
5c016857b7
@ -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…
Reference in New Issue
Block a user