Yes I'm sure if I add more `+ '_` it will work, thanks rustc.pic.twitter.com/myR96kPuEU
Co lead of the http://crates.io team. Creator of @dieselframework. Former host of @_bikeshed and @_yakshave. Former Rails comitter. Enby. they/them
You can add location information to your Tweets, such as your city or precise location, from the web and via third-party applications. You always have the option to delete your Tweet location history. Learn more
Add this Tweet to your website by copying the code below. Learn more
Add this video to your website by copying the code below. Learn more
By embedding Twitter content in your website or app, you are agreeing to the Twitter Developer Agreement and Developer Policy.
| Country | Code | For customers of |
|---|---|---|
| United States | 40404 | (any) |
| Canada | 21212 | (any) |
| United Kingdom | 86444 | Vodafone, Orange, 3, O2 |
| Brazil | 40404 | Nextel, TIM |
| Haiti | 40404 | Digicel, Voila |
| Ireland | 51210 | Vodafone, O2 |
| India | 53000 | Bharti Airtel, Videocon, Reliance |
| Indonesia | 89887 | AXIS, 3, Telkomsel, Indosat, XL Axiata |
| Italy | 4880804 | Wind |
| 3424486444 | Vodafone | |
| » See SMS short codes for other countries | ||
This timeline is where you’ll spend most of your time, getting instant updates about what matters to you.
Hover over the profile pic and click the Following button to unfollow any account.
When you see a Tweet you love, tap the heart — it lets the person who wrote it know you shared the love.
The fastest way to share someone else’s Tweet with your followers is with a Retweet. Tap the icon to send it instantly.
Add your thoughts about any Tweet with a Reply. Find a topic you’re passionate about, and jump right in.
Get instant insight into what people are talking about now.
Follow more accounts to get instant updates about topics you care about.
See the latest conversations about any topic instantly.
Catch up instantly on the best stories happening as they unfold.
Yes I'm sure if I add more `+ '_` it will work, thanks rustc.pic.twitter.com/myR96kPuEU
The lifetime actually needed to go on the trait object in `Box` (which doesn't have dyn because it was written before that was a thing). /cc @ekuber
Can you give me a repro? I've been touching this recently https://github.com/rust-lang/rust/pull/72804 …, but it might not cover your case.
Honestly thought I'd be able to pare it down more than this. The intermediate iter struct is important to get it to give the bad suggestion. Couldn't reduce down to returning `self.0.iter()` directly. https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&gist=62414e75e13830af0ae63570662e0385 …
With the unrelated compiler error removed https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&gist=2b665a6403bd4fa87ea51da5230550d8 …
I see what happens... The suggestion is currently naive and only works well if there's only one inferred 'static, but here there are two and I wrote no code to account for them.
Great repro case, I'll see if I can do something about it.
Yeah luckily this was easy to spot at the time because the code (written before impl trait and '_) was previously returning `Box<dyn Iterator<Box<dyn Stage + 'a>> + 'a>`. I was just curious if I could omit any/both of those lifetimes now.
Ironically you *can* omit the one the compiler suggests
Anyway I'm going to just keep following the compiler's suggestions. I'm sure it'll work eventually.
I'm happy that this works https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&gist=42d893e4d8b401d160ed8f94c55228e1 … but I'm still convinced that the implicit 'static when dealing with traits was an ergonomic mistake.
Yes I 100% agree. I'm also pretty sure it's not really documented anywhere. I learned about it from some friends on the lang team
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.