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

Add const support in array initialization #53

Closed
RazrFalcon opened this issue Sep 21, 2017 · 2 comments
Closed

Add const support in array initialization #53

RazrFalcon opened this issue Sep 21, 2017 · 2 comments

Comments

@RazrFalcon
Copy link
Contributor

Example:

const LENGTH: usize = 64;

#[repr(C)]
pub struct Data {
    pub d: [u8; LENGTH],
}

If I replace LENGTH with a number - everything works just fine.

@eqrion
Copy link
Collaborator

eqrion commented Oct 19, 2017

Fixed in 0.1.27. Please reopen if you are still having an issue with this.

@eqrion eqrion closed this as completed Oct 19, 2017
@RazrFalcon
Copy link
Contributor Author

Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants