Error Report on Unused Generic Parameters #98909
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Given the following code: code
If we were to remove the
PhantomData<S>
typed memberplaceholder
inSomeOtherStruct
, the compiler would spit out the following errorBut if we follow the direction of the compiler and further remove the
S
type parameter inSomeOtherStruct
, we getSo I was wondering if there's a better way for the compiler to either:
S
was used as a type parameter forT
pub struct SomeOtherStruct<T: SomeGenericTrait<_>>{...}
The text was updated successfully, but these errors were encountered: