#![allow(incomplete_features)] #![feature(generic_const_exprs)] #![feature(specialization)] pub trait Trait { type Type; } impl Trait for T { default type Type = [u8; 1]; } impl Trait for *const T { type Type = [u8; std::mem::size_of::<::Type>()]; //~^ ERROR: unconstrained generic constant } fn main() {}