Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@dtolnay
Copy link
Owner

@dtolnay dtolnay commented May 15, 2024

Very similar to #1654, but for default values in the definition of a const generic parameter.

trait Trait<const K: usize = 1 + 1> {}
                             ^^^^^

@dtolnay dtolnay merged commit 9597ebc into master May 15, 2024
@dtolnay dtolnay deleted the constparam branch May 15, 2024 19:39
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.

2 participants