[playground](https://play.rust-lang.org/?version=nightly&mode=debug&edition=2021&gist=167607d31fe299615ceb92d1d0181ab4) ```rust #![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`
playground
At line of '2':
error[E0308]: mismatched typesexpected associated type, found integer