We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
playground
#![feature( associated_type_defaults, )] pub trait Trait { type Res = isize; fn f() -> Self::Res { 2 } }
At line of '2': error[E0308]: mismatched types expected associated type, found integer
error[E0308]: mismatched types
expected associated type, found integer