-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Closed
Labels
E-has-instructionsIssue has some instructions and pointers to code to get startedIssue has some instructions and pointers to code to get startedE-unknownIt's unclear if the issue is E-hard or E-easy without digging inIt's unclear if the issue is E-hard or E-easy without digging in
Description
To reproduce, invoke "Implement missing members" assist on the following program:
struct S;
impl PartialEq for S {}Actual result:
impl PartialEq for S {
fn eq(&self, other: &Rhs) -> std::primitive::bool { unimplemented!() }
}This does not compile: "cannot find type `Rhs` in this scope".
Expected result:
impl PartialEq for S {
fn eq(&self, other: &Self) -> std::primitive::bool { unimplemented!() }
}Because PartialEq<Rhs=Self>.
rust-analyzer version: 2020-04-06 (c859a64)
lnicola, SomeoneToIgnore and rolldevio
Metadata
Metadata
Assignees
Labels
E-has-instructionsIssue has some instructions and pointers to code to get startedIssue has some instructions and pointers to code to get startedE-unknownIt's unclear if the issue is E-hard or E-easy without digging inIt's unclear if the issue is E-hard or E-easy without digging in