You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The previous explanation does not seem to explain what it means for an
implementation parameter to be used or unused. The new explanation lists
the three ways specific ways by which an impl parameter becomes constrained
(taken from RFC 447).
This also adds a link to RFC 447.
The explanation has two different examples. The first is adapted from RFC 447,
and shows an instance of E0207 on a impl for a type. The second one is a trait
impl example adapted from issue rust-lang#22834.
Closesrust-lang#33650
Improve the long explanation of E0207.
The previous explanation does not seem to explain what it means for an
implementation parameter to be used or unused. The new explanation lists
the three ways specific ways by which an impl parameter becomes constrained
(taken from RFC 447).
This also adds a link to RFC 447.
The explanation has two different examples. The first is adapted from RFC 447,
and shows an instance of E0207 on a impl for a type. The second one is a trait
impl example adapted from issue rust-lang#22834.
Closesrust-lang#33650
cc rust-lang#32777
r? @GuillaumeGomez
I'm trying to use a reference in an associated type. Rust wants me to add lifetime annotations, but it doesn't tell me where exactly they are needed.
If I try such (invalid) code:
I'm getting error:
The problem is
E0207
only tells me to remove the lifetime, but I'm trying to add it, so the error explanation doesn't help me solve my problem.Pinging #32777
rustc 1.10.0-nightly (2b79e05 2016-05-13)
The text was updated successfully, but these errors were encountered: