Sign in
fuchsia
/
third_party
/
rust
/
0.4
/
.
/
src
/
test
/
run-fail
/
unwind-resource-fail3.rs
blob: c7eeec2e5480ac8fb70fd43750940b991033953e [
file
]
// error-pattern:quux
// xfail-test
class faily_box
{
let
i
:
@int
;
new
(
i
:
@int
)
{
self
.
i
=
i
;
}
// What happens to the box pointer owned by this class?
drop
{
fail
"quux"
;
}
}
fn
main
()
{
faily_box
(@
10
);
}