The type parameter <T: SomeTrait> should come right after the impl keyword: impl<T: SomeTrait> MyStruct<T> { fn new(t: T) -> Self { MyStruct ...
確定! 回上一頁