Closed
Description
The code and the compiler backtrace output is in this gist.
The relevant parts of the compiler output seem to be:
rust: task failed at 'Unsupported constant expr', /home/leah/rust-0.5/src/librustc/middle/const_eval.rs:238
and maybe:
rust: task failed at 'explicit failure', /home/leah/rust-0.5/src/librustc/rustc.rc:425
The part of my code that I think causes it is this:
#[test]
fn insert_value() {
let bvt : Level1<int> = Level1 { data : @mut([@0,..@31]), current : 0};
bvt.append(@5);
}
Specifically, [@0,..@31]
seems to be the change that triggered this bug.
I'm trying to find a way to create a static mutable array of managed pointers to ints, of size 32. Needing this might very well be a side-effect of my not knowing how to design/implement data structures in rust, but it's what I need to make the types work out at this point (to actually instantiate a Level1
), I think.
The output of rustc --version
is:
rustc 0.5
host: i686-unknown-linux-gnu
Metadata
Metadata
Assignees
Labels
No labels