https://codecs.multimedia.cx/2018/05/rust-lifetimes-sugar/ …
@rustlang do you think would be acceptable for an rfc?
This doesn’t have a struct example in it so it’s not perfect, but something like struct Foo<‘_> { x: &i32, } was at least proposed somewhere, I forget off the top of my head if it made it in. The ‘_ is different from his proposal is important; you want to see that it...
-
-
... contains a borrow, so removing it entirely isn’t likely to happen.
-
Without it is actually legal today in some circumstances, like fn foo(&self) -> Foo But we’re going to lint against that and make you write fn foo(&self) -> Foo<‘_> so you can see the borrow, for this reason
- 2 more replies
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.