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
Spurious error "The requirement ... is added only by the Drop impl" #34426
This gives the error "The requirement for<'a> A: WithLifetime<'a> is added only by the Drop impl" which is obviously untrue. Removing that bound from the Drop impl gives the error "the trait bound for<'a> A: WithLifetime<'a> is not satisfied" as it should.
I'd be willing to try and tackle this issue! Is there anyone that would be able to do any mentoring? The attempts I've made to figure out the proper way of fixing this have resulted in me getting lost in the compiler's code, and I'm running out of stamina going at it alone.
Activity
durka commentedon Jun 27, 2016
As an aside, the error message rephrased the bound to
for<'a> A: WithLifetime<'a>which is illegal syntax.Osspial commentedon Mar 17, 2019
I'd be willing to try and tackle this issue! Is there anyone that would be able to do any mentoring? The attempts I've made to figure out the proper way of fixing this have resulted in me getting lost in the compiler's code, and I'm running out of stamina going at it alone.
Add regression test for rust-lang#34426
Rollup merge of rust-lang#67059 - TommasoBianchi:dropck_fix_pr, r=pnk…
Rollup merge of rust-lang#67059 - TommasoBianchi:dropck_fix_pr, r=pnk…