parent
5011bbfbb6
commit
60eb04aea9
|
@ -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