Non dyn usable assoc type

hi folks! why does an assoc type with a Self: Sized bound non dyn usable? (I just crammed this fact and I don't know why exactly does it work this way....)

trait Trait {
    type Foo where Self: Sized;
    fn foo(&self) -> Self::Foo where Self: Sized;
    fn bar(&self) {}
}

impl Trait for i32 {
    type Foo = ();
    fn foo(&self) -> Self::Foo {}
}

impl Trait for u64 {
    type Foo = f32;
    fn foo(&self) -> Self::Foo { 0.0 }
}

// No need for `dyn Trait<Foo = ()>`!
let mut a: &dyn Trait = &0_i32;

// No need for associated type equality between base types!
a = &0_u64;

// This fails because the type is not defined (`dyn Trait` is not `Sized`)
// let _: <dyn Trait as Trait>::Foo = todo!();

The associated type <X as Trait>::Foo is only defined -- "well-formed" -- when it's bounds are met, which in this case includes when X: Sized. So <dyn Trait as Trait>::Foo is not defined, because dyn Trait is not Sized.

That said, due to a quirk of history, you can coerce i32 to dyn Trait or to dyn Trait<Foo = ()>. But <dyn trait<Foo = ()>>::Foo is still not defined.

Similarly if you have

trait Trait {
    type Bar where Self: 'static;
    // ...
}

then <dyn Trait<Bar = ()> + 'a as Trait>::Bar is only defined when 'a: 'static, etc.