// option. This file may not be copied, modified, or distributed
// except according to those terms.
-use std::sys::size_of;
+#![feature(unsafe_destructor)]
-#[no_drop_flag]
+use std::mem::size_of;
+
+#[unsafe_no_drop_flag]
struct Test<T> {
a: T
}
#[unsafe_destructor]
impl<T> Drop for Test<T> {
- fn finalize(&self) { }
+ fn drop(&mut self) { }
}
-fn main() {
+pub fn main() {
assert_eq!(size_of::<int>(), size_of::<Test<int>>());
}