-
Notifications
You must be signed in to change notification settings - Fork 12.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Lifetime errors on nightly-2019-09-11 but not nightly-2019-09-10 #64433
Comments
This too is fallout from #64292, similar to #64477. I've written up a long report on the change that caused this and its motivations. The report also discussed whether we should consider revering that change, and what that would mean. Let's keep discussion about the pro/con of the decision confined to #64477 though. |
I hit the same issue with something like this: async fn something<B: Borrow<Foo>>(b: B) {
other(b.borrow()).await;
} |
The original example, at least, is fixed by #64584 |
Also this is likely a duplicate of #64391 at this point |
The code below will compile without warnings on
nightly-2019-09-10
, but returns a lifetime error onnightly-2019-09-11
and later.cargo +nightly-2019-09-10 build
compiles the code without warnings, andcargo +nightly-2019-09-11 build
gives the following error:Meta
The text was updated successfully, but these errors were encountered: