Closed
Description
Code:
struct Foo {
name: Box<str>
}
impl Foo {
fn new(name: Box<str>) -> Foo {
Foo { name: name }
}
}
fn main() {}
Compilation fails with ICE:
error: internal compiler error: sequence_element_type called on non-sequence value: Box<str>
note: the compiler hit an unexpected failure path. this is a bug.
note: we would appreciate a bug report: http://doc.rust-lang.org/complement-bugreport.html
note: run with `RUST_BACKTRACE=1` for a backtrace
task 'rustc' failed at 'Box<Any>', /home/matrix/github/rust/src/libsyntax/diagnostic.rs:169
$ rustc -v
rustc 0.12.0-dev (9a2286d3a 2014-10-03 07:33:26 +0000)
Metadata
Metadata
Assignees
Labels
Type
Projects
Milestone
Relationships
Development
No branches or pull requests
Activity
insideable commentedon Oct 3, 2014
Simplified example with same result:
Correctly generate drop glue for `Box<str>`
Box<str>
#17762Add regression test for issue rust-lang#17734
auto merge of #17762 : bkoropoff/rust/issue-17734, r=alexcrichton
ghost commentedon Oct 11, 2014
Fixed in #17762. Closing.
Auto merge of rust-lang#17747 - ShoyuVanilla:issue-17734, r=Veykril