Skip to content

Conversation

dtolnay
Copy link
Owner

@dtolnay dtolnay commented Aug 15, 2025

Closes #1435.

Const parameters continue to be unsupported, like in rustc.

#![feature(non_lifetime_binders)]

pub trait Trait<const K: usize> {}

pub fn f<T>()
where
    T: for<const K: usize> Trait<K>,
{}
error: late-bound const parameters cannot be used currently
 --> src/lib.rs:7:18
  |
7 |     T: for<const K: usize> Trait<K>,
  |                  ^

@dtolnay dtolnay merged commit cb18d2f into master Aug 15, 2025
30 checks passed
@dtolnay dtolnay deleted the typebinder branch August 15, 2025 20:37
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

Successfully merging this pull request may close these issues.

Parse non-lifetime binders
1 participant