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

ICE with const generics parameter in literal array length. #61490

Closed
crlf0710 opened this issue Jun 3, 2019 · 3 comments
Closed

ICE with const generics parameter in literal array length. #61490

crlf0710 opened this issue Jun 3, 2019 · 3 comments

Comments

@crlf0710
Copy link
Member

crlf0710 commented Jun 3, 2019

Seems similar to #61368, but different:

#![feature(const_generics)]

fn f<const LEN: usize>() {
    let a = [true; LEN];
}

play link

@varkor @yodaldevoid

@est31
Copy link
Member

est31 commented Jun 3, 2019

Both error message and code look very similar to #61336 , just that the type is set/fixed.

@varkor
Copy link
Member

varkor commented Jun 3, 2019

This definitely seems to be a problem with repeat expressions in particular.

@crlf0710
Copy link
Member Author

crlf0710 commented Jun 3, 2019

Closing as a duplicate of #61336. Sorry :P

@crlf0710 crlf0710 closed this as completed Jun 3, 2019
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

3 participants