Skip to content

ICE when constructing an array whose size is in an external crate #13664

Closed
@radford

Description

@radford
    extern crate n; // contains only: pub static N: uint = 24;
    pub struct X { n: [u8,..24] }
    fn new() -> X { X { n: [0,..n::N] }}
    fn main() {}

RefCell already borrowed in middle::astencode::decode_side_tables::closure.

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