Skip to content
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

HRTB WF ambiguity #17

Open
compiler-errors opened this issue Mar 29, 2023 · 2 comments
Open

HRTB WF ambiguity #17

compiler-errors opened this issue Mar 29, 2023 · 2 comments
Labels
needs-further-investigation Needs to be root-caused

Comments

@compiler-errors
Copy link
Owner

pub struct Bar
where
    for<'a> &'a mut Self:;

fn main() {}

Errors out in ambiguity:

error[E0282]: type annotations needed
 --> <source>:5:13
  |
5 |     for<'a> &'a mut Self:;
  |             ^^^^^^^^^^^^ cannot infer type for mutable reference `&'a mut Bar`
  |
note: required by a bound in `Bar`

This happens when checking that Bar is WF... so what's going on there?!

@compiler-errors compiler-errors added the needs-further-investigation Needs to be root-caused label Mar 29, 2023
@lcnr
Copy link

lcnr commented Mar 30, 2023

that's an issue with the current coinduction handling for hrtb: https://hackmd.io/0GCBKGYCQ9a8zz_FvCWQLw#coinduction-makes-me-sad

have that as "deduplicate universes in query responses" under "initial implementation finished" in the tracking issue rust-lang/rust#107374

@lcnr
Copy link

lcnr commented Mar 30, 2023

opened it as rust-lang/rust#109764. should change the test to have revisions and be known-bug with the new solver

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs-further-investigation Needs to be root-caused
Projects
None yet
Development

No branches or pull requests

2 participants