2012-11-15 19:50:53 -08:00
|
|
|
// error-pattern:squirrel
|
2011-09-07 18:29:12 -07:00
|
|
|
|
2012-11-15 19:50:53 -08:00
|
|
|
struct r {
|
|
|
|
i: int,
|
|
|
|
drop { fail ~"squirrel" }
|
2011-09-07 18:29:12 -07:00
|
|
|
}
|
|
|
|
|
2012-11-15 19:50:53 -08:00
|
|
|
fn r(i: int) -> r { r { i: i } }
|
|
|
|
|
2011-09-07 18:29:12 -07:00
|
|
|
fn main() {
|
|
|
|
@0;
|
2012-10-23 11:11:23 -07:00
|
|
|
let r = move r(0);
|
2012-11-14 01:22:37 -05:00
|
|
|
}
|