Skip to content

Cannot use [x, .. n] in statics #8152

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

Closed
huonw opened this issue Jul 31, 2013 · 0 comments
Closed

Cannot use [x, .. n] in statics #8152

huonw opened this issue Jul 31, 2013 · 0 comments

Comments

@huonw
Copy link
Member

huonw commented Jul 31, 2013

rusti> static A: [uint, .. 3] = [0, .. 3];
rusti> A
<anon>:9:32: 9:39 error: constant contains unimplemented expression type
<anon>:9         static A: [uint, ..3] = [0,..3];
                                         ^~~~~~~

I guess this is mostly relevant to static mut.

@bors bors closed this as completed in 7f58552 Aug 15, 2013
flip1995 pushed a commit to flip1995/rust that referenced this issue Feb 26, 2022
flip1995 pushed a commit to flip1995/rust that referenced this issue Feb 26, 2022
…t_should_not_trigger_on_doc_hidden_items, r=flip1995

Disable ``[`new-without-default`]`` for new() methods that are marked…

… with '#[doc(hidden)]'

Fixes rust-lang#8152

changelog: Disable ``[`new-without-default`]`` for new() methods that are marked with `#[doc(hidden)]`
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 a pull request may close this issue.

1 participant