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
This error message makes me sad, since it doesn't suggest any way to fix the problem. Sorry, I don't have a self-contained example right now, but I'll try to make one later.
6584.rs:2:5: 2:6 error: value may contain borrowed pointers; add `'static` bound
6584.rs:2 @t
^
error: aborting due to previous error
This appears to be the only explanation of this requirement, a quick skip of the manual (searching for 'static and @) doesn't turn up anything, so leaving this open, and tagging with docs too.
Looking at the tests, there are two instances of this error. one suggests a solution, and the other seems to be specific to Gc. Still unsure what fix to suggest in that case, though.
Activity
emberian commentedon Jul 12, 2013
@catamorphism what situation is it generated, at least?
huonw commentedon Sep 2, 2013
Triage: it now has a suggestion on how to fix it:
This appears to be the only explanation of this requirement, a quick skip of the manual (searching for
'staticand@) doesn't turn up anything, so leaving this open, and tagging with docs too.alexcrichton commentedon Jan 16, 2014
Nominating, sounds like a pretty bad error message.
pnkfelix commentedon Jan 22, 2014
@t is feature gated. Of course we will have it (or Gc), but its not huge for 1.0.
Accepted for P-low.
steveklabnik commentedon Jun 23, 2014
I don't even think this error exists anymore:
Combined with the removal of
@, I think we can close this.emberian commentedon Jun 23, 2014
The error has been renamed to
value may contain referencesemberian commentedon Jun 23, 2014
I think it still comes up with trait objects in general, especially
Box<Trait>steveklabnik commentedon Aug 18, 2014
Looking at the tests, there are two instances of this error. one suggests a solution, and the other seems to be specific to Gc. Still unsure what fix to suggest in that case, though.
steveklabnik commentedon Dec 8, 2014
triage:
Does anyone know if this is still an issue? Or have an example of how to reproduce?
steveklabnik commentedon Jan 12, 2015
It's been a month, and so I'm giving this a close. If someone can give me code to reproduce, we can re-open.
Auto merge of rust-lang#6584 - giraffate:make_references_to_issues_li…