Skip to content

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

@radford

Description

@radford
Contributor
    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.

Activity

alexcrichton

alexcrichton commented on Apr 25, 2014

@alexcrichton
Member

Closing as a dupe of #13763

added a commit that references this issue on Dec 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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

        Participants

        @radford@alexcrichton

        Issue actions

          ICE when constructing an array whose size is in an external crate · Issue #13664 · rust-lang/rust