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

Parse opt out const bounds #767

Closed
dtolnay opened this issue Feb 21, 2020 · 0 comments · Fixed by #829
Closed

Parse opt out const bounds #767

dtolnay opened this issue Feb 21, 2020 · 0 comments · Fixed by #829
Labels

Comments

@dtolnay
Copy link
Owner

dtolnay commented Feb 21, 2020

As seen in https://github.com/rust-lang/rust/blob/8aa9d2014f4e5258f83b907e8431c59a33acdae7/src/test/ui/rfc-2632-const-trait-impl/const-trait-bound-opt-out/feature-gate.rs#L12.

const fn get_assoc_const<S: ?const T>() -> i32 {
                         // ^^^^^^^^
    <S as T>::CONST
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant