// build-pass (FIXME(62277): could be check-pass?) trait ConstDefault { const DEFAULT: Self; } trait Foo: Sized {} trait FooExt: Foo { type T: ConstDefault; } trait Bar { const T: F::T; } impl Bar for () { const T: F::T = ::DEFAULT; } fn main() {}