Skip to content

internal compiler error: Explicit deref of non-derefable type #15480

Closed
@mahkoh

Description

@mahkoh
fn main() {
    let &ref a = [0u].as_slice();
}
test.rs:2:9: 2:15 error: internal compiler error: Explicit deref of non-derefable type: &[uint]
test.rs:2     let &ref a = [0u].as_slice();
                  ^~~~~~

Metadata

Metadata

Assignees

No one assigned

    Labels

    E-needs-testCall for participation: An issue has been fixed and does not reproduce, but no test has been added.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