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

Support associated const dispatch #1

Open
mversic opened this issue Sep 24, 2023 · 1 comment
Open

Support associated const dispatch #1

mversic opened this issue Sep 24, 2023 · 1 comment

Comments

@mversic
Copy link
Owner

mversic commented Sep 24, 2023

this syntax could be supported:

#![feature(associated_const_equality)]

trait Foo { const ENABLED: bool; }

trait Bar {}

impl<T> Bar for T where T: Foo<ENABLED = true> {}
impl<T> Bar for T where T: Foo<ENABLED = false> {}
@appetrosyan
Copy link

Anything we can do to help make this happen?

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

2 participants