2018-08-30 14:18:55 +02:00
|
|
|
// run-pass
|
2018-09-25 23:51:35 +02:00
|
|
|
#![allow(dead_code)]
|
2013-10-16 18:34:01 -07:00
|
|
|
use std::mem::size_of;
|
2013-06-23 16:13:29 +12:00
|
|
|
|
|
|
|
struct Test<T> {
|
|
|
|
a: T
|
|
|
|
}
|
|
|
|
|
|
|
|
impl<T> Drop for Test<T> {
|
2013-09-16 21:18:07 -04:00
|
|
|
fn drop(&mut self) { }
|
2013-06-23 16:13:29 +12:00
|
|
|
}
|
|
|
|
|
2013-09-25 00:43:37 -07:00
|
|
|
pub fn main() {
|
2015-03-25 17:06:52 -07:00
|
|
|
assert_eq!(size_of::<isize>(), size_of::<Test<isize>>());
|
2013-06-23 16:13:29 +12:00
|
|
|
}
|