-
Notifications
You must be signed in to change notification settings - Fork 12.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adding Deref impl affects lifetime bounds of other methods #27697
Labels
A-lifetimes
Area: Lifetimes / regions
A-type-system
Area: Type system
C-bug
Category: This is a bug.
E-needs-test
Call for participation: An issue has been fixed and does not reproduce, but no test has been added.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Comments
Code: http://is.gd/AkyE69 |
For debugging, notice that |
steveklabnik
added
A-type-system
Area: Type system
A-lifetimes
Area: Lifetimes / regions
labels
Aug 13, 2015
Triage: still reproduces today. |
Triage: still reproduces today. |
17 tasks
This no longer reproduces. Tagging as E-needstest |
pnkfelix
added
E-needs-test
Call for participation: An issue has been fixed and does not reproduce, but no test has been added.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
labels
Feb 27, 2019
Centril
added a commit
to Centril/rust
that referenced
this issue
Jun 21, 2019
… r=alexcrichton Add test for issue-27697 Closes rust-lang#27697
Centril
added a commit
to Centril/rust
that referenced
this issue
Jun 21, 2019
… r=alexcrichton Add test for issue-27697 Closes rust-lang#27697
Centril
added a commit
to Centril/rust
that referenced
this issue
Jun 21, 2019
… r=alexcrichton Add test for issue-27697 Closes rust-lang#27697
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
A-lifetimes
Area: Lifetimes / regions
A-type-system
Area: Type system
C-bug
Category: This is a bug.
E-needs-test
Call for participation: An issue has been fixed and does not reproduce, but no test has been added.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
From https://users.rust-lang.org/t/does-implementing-deref-affect-the-lifetime-bounds-of-all-other-methods/
Code:
http://is.gd/AkyE699http://is.gd/AkyE69If the Deref is removed, the code compiles. Presumably, the inclusion of the Deref implementation on the trait object causes the lifetime bounds to change on the do_something method.
The text was updated successfully, but these errors were encountered: