average-vr-56795
05/22/2018, 10:14 AMstruct S<Param> {
field: Param,
}
and they’re used fn foo() -> S<String>.
On a trait, they’re called associated types, and they have names. They’re defined:
trait T {
type Param;
}
and they’re used: fn foo() -> T<Param=String>