//@ run-rustfix #![allow(dead_code)] trait O { type M; } trait U { const N: A::M; } impl O for D { type M = u8; } impl> U for u16 { const N: C::M = 4u8; //~ ERROR mismatched types } fn main() {}