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

coherence now uses fulfillment #93

Closed
lcnr opened this issue Feb 16, 2024 · 1 comment
Closed

coherence now uses fulfillment #93

lcnr opened this issue Feb 16, 2024 · 1 comment

Comments

@lcnr
Copy link
Contributor

lcnr commented Feb 16, 2024

rust-lang/rust#121193

trait Mirror {
    type Assoc;
}
impl<T> Mirror for T {
    type Assoc = T;
}

trait Foo {}
trait Bar {}

impl<T> Foo for T where (): Mirror<Assoc = T> {}
impl<T> Foo for T where T: Bar {}

fn main() {}

now passes with the new solver as constraints from one where-bound can be used to guide another one

@lcnr
Copy link
Contributor Author

lcnr commented Apr 23, 2024

now stabilized (ish)

@lcnr lcnr closed this as completed Apr 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant