2012-12-10 17:32:48 -08:00
|
|
|
// Copyright 2012 The Rust Project Developers. See the COPYRIGHT
|
|
|
|
// file at the top-level directory of this distribution and at
|
|
|
|
// http://rust-lang.org/COPYRIGHT.
|
|
|
|
//
|
|
|
|
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
|
|
|
|
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
|
|
|
|
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
|
|
|
|
// option. This file may not be copied, modified, or distributed
|
|
|
|
// except according to those terms.
|
|
|
|
|
2014-04-14 21:00:31 +05:30
|
|
|
#![feature(managed_boxes)]
|
2013-10-23 04:49:18 -04:00
|
|
|
|
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,
|
2013-02-27 19:13:53 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
impl Drop for r {
|
2013-10-21 13:08:31 -07:00
|
|
|
fn drop(&mut self) { 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;
|
2013-08-17 08:37:42 -07:00
|
|
|
let _r = r(0);
|
2012-11-14 01:22:37 -05:00
|
|
|
}
|