2012-11-16 13:19:45 -06:00
|
|
|
// xfail-test leaks
|
2012-11-15 21:50:53 -06:00
|
|
|
// error-pattern:wombat
|
2011-09-14 12:59:17 -05:00
|
|
|
|
2012-11-15 21:50:53 -06:00
|
|
|
struct r {
|
|
|
|
i: int,
|
|
|
|
drop { fail ~"wombat" }
|
2011-09-14 12:59:17 -05:00
|
|
|
}
|
|
|
|
|
2012-11-15 21:50:53 -06:00
|
|
|
fn r(i: int) -> r { r { i: i } }
|
|
|
|
|
2011-09-14 12:59:17 -05:00
|
|
|
fn main() {
|
|
|
|
@0;
|
2012-10-23 13:11:23 -05:00
|
|
|
let r = move r(0);
|
2011-09-14 12:59:17 -05:00
|
|
|
fail;
|
|
|
|
}
|