blob: 747e4eb917f8f5a09c9726be8486149ad42fc9c3 [file] [log] [blame]
//@ check-pass
struct Foo<T>(T);
impl<T> Foo<T> {
const VALUE: usize = std::mem::size_of::<T>();
}
fn test<T>() {
let _ = [0; Foo::<u8>::VALUE];
}
fn main() {}