mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-02 11:44:28 +00:00
16 lines
224 B
Rust
16 lines
224 B
Rust
//@ 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>>());
|
|
}
|