Skip to content

&mut [] results in "constant contains unimplemented expression type" #11411

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Closed
Tobba opened this issue Jan 8, 2014 · 0 comments · Fixed by #12742
Closed

&mut [] results in "constant contains unimplemented expression type" #11411

Tobba opened this issue Jan 8, 2014 · 0 comments · Fixed by #12742
Labels
E-easy Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue. I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️

Comments

@Tobba
Copy link
Contributor

Tobba commented Jan 8, 2014

static mut threadInfo: &'static mut [ThreadInfo] = &mut [];

This line in my project currently causes an unimplemented expression error, @cmr told me to submit an issue

@ghost ghost assigned emberian Jan 8, 2014
xales added a commit to xales/rust that referenced this issue Feb 20, 2014
flaper87 added a commit to flaper87/rust that referenced this issue Mar 6, 2014
This is a follow-up patch that moves the mut slice check to the recently
added `check_static`

Closes rust-lang#11411
bors added a commit that referenced this issue Mar 17, 2014
…nikomatsakis

This PR enables the use of mutable slices in *mutable* static items. The work was started by @xales and I added a follow-up commit that moves the *immutable* restriction to the recently added `check_static`

Closes #11411
flip1995 pushed a commit to flip1995/rust that referenced this issue Sep 7, 2023
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
E-easy Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue. I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants