#![feature(intrinsics)] #[lang = "sized"] pub trait Sized {} extern "rust-intrinsic" { pub fn size_of() -> usize; } fn test() -> usize { unsafe { size_of::() } } fn main() { let _a = test(); }