-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
Trouble unifying function types involving HRTB #89436
Labels
Comments
Manishearth
added
A-lifetimes
Area: Lifetimes / regions
A-traits
Area: Trait system
labels
Oct 1, 2021
I wonder if #88441 will fix this. |
@jackh726 it changes the error to
|
Hmm |
Seems to be the same as #90875; adding type annotations fixes the problem (playground). @Manishearth can you confirm this? You may want to close this in favor of #90875 which contains a minimal example otherwise I'm happy to close mine as a duplicate. |
@aliemjay Ah, I see. Thanks! |
Dylan-DPC
pushed a commit
to Dylan-DPC/rust
that referenced
this issue
Jul 15, 2022
Dylan-DPC
added a commit
to Dylan-DPC/rust
that referenced
this issue
Jul 15, 2022
Add regression test for rust-lang#89436 I never got around to adding such a test. In general I think the `yoke` crate has a bunch of interesting testcases that exercise various edges of the algorithms here, it would be nice if we could simply depend on the crate and add some tests that exercise it, but I don't think that's possible. Do you or `@eddyb` think there's any use trying to upstream a bunch of common yoke minimal working example code to the testsuite and having a ton of yoke tests?
bors
added a commit
to rust-lang-ci/rust
that referenced
this issue
Jul 15, 2022
Rollup of 6 pull requests Successful merges: - rust-lang#99113 (Simplify [a]rc code a little) - rust-lang#99131 (Add label for generic arg (+ APIT) and RPIT callables in `label_fn_like`) - rust-lang#99237 (removed unused CSS and unused HTML IDs) - rust-lang#99239 (Add myself to the set of people notified when MIR changes.) - rust-lang#99241 (Remove comment referring to constness.rs) - rust-lang#99257 (Add regression test for rust-lang#89436) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Spawned off of #84937 (comment)
Code example
(playpen)
throws an error of
This error is incorrect:
<Bar<'_> as MiniYokeable<'a>>::Output
is the same thing asBar<'a>
.cc @sffc @jackh726
The text was updated successfully, but these errors were encountered: