blob: 103e70ef6ee10ae4e41211b3bc2686b88edb4f74 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
// run-pass
#![allow(dead_code)]
use std::mem::size_of;
struct Test<T> {
a: T
}
impl<T> Drop for Test<T> {
fn drop(&mut self) { }
}
pub fn main() {
assert_eq!(size_of::<isize>(), size_of::<Test<isize>>());
}
|