Skip to content

Initialize a static vector with vec!() leads to rustc failure. #13312

Closed
@hirschenberger

Description

@hirschenberger
rustc 0.11-pre (7056f97 2014-04-03 22:06:50 -0700)
host: x86_64-unknown-linux-gnu

Code:

static A: Vec<uint> = vec!(1);

Error:

<std macros>:4:13: 4:47 error: internal compiler error: no type for local variable 31u32
<std macros>:4         let mut _temp = ::std::vec::Vec::new();

Metadata

Metadata

Assignees

No one assigned

    Labels

    I-ICEIssue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions