We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
This code wrongly states "expected constant integer for repeat count, but non-constant path in constant expression"
#![feature(const_fn)] struct A { field: usize, } const fn f() -> usize { 5 } fn main() { let _ = [0; f()]; }
This one works
#![feature(const_fn)] const fn f() -> usize { 5 } struct A { field: usize, } fn main() { let _ = [0; f()]; }
The text was updated successfully, but these errors were encountered:
add unit tests for rust-lang#29927
5e1276a
accidentally fixed in #30084
Sorry, something went wrong.
No branches or pull requests
This code wrongly states "expected constant integer for repeat count, but non-constant path in constant expression"
This one works
The text was updated successfully, but these errors were encountered: