1 #![allow(incomplete_features)]
2 #![feature(generic_const_exprs)]
3 #![feature(specialization)]
9 impl<T: ?Sized> Trait for T {
10 default type Type = [u8; 1];
13 impl<T: Trait> Trait for *const T {
14 type Type = [u8; std::mem::size_of::<<T as Trait>::Type>()];
15 //~^ ERROR: unconstrained generic constant