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
{{ message }}
Repository navigation
Adding Deref impl affects lifetime bounds of other methods #27697
If 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.
Activity
Stebalien commentedon Aug 12, 2015
Code: http://is.gd/AkyE69
bluss commentedon Aug 12, 2015
For debugging, notice that
impl Deref for MyTraitis equivalent toimpl Deref for MyTrait + 'static.steveklabnik commentedon Feb 7, 2017
Triage: still reproduces today.
frewsxcv commentedon Jun 4, 2018
Triage: still reproduces today.
pnkfelix commentedon Feb 27, 2019
This no longer reproduces. Tagging as E-needstest
Rollup merge of rust-lang#62016 - JohnTitor:add-test-for-issue-27697,…
Rollup merge of rust-lang#62016 - JohnTitor:add-test-for-issue-27697,…
Rollup merge of rust-lang#62016 - JohnTitor:add-test-for-issue-27697,…