1 #![feature(const_generics, const_evaluatable_checked)]
2 #![allow(incomplete_features)]
5 use std::marker::PhantomData;
7 struct Foo<T>(PhantomData<T>);
9 fn test<T>() -> [u8; size_of::<T>()] {
10 [0; size_of::<Foo<T>>()]
11 //~^ ERROR unconstrained generic constant