Skip to content

Segfault with let _x = "test" as &Any #14366

Closed
@lilyball

Description

@lilyball

The following program segfaults when run (it compiles just fine):

fn main() {
    let _x = "test" as &::std::any::Any;
}

Reproduced with rustc 0.11.0-pre (22e2204 2014-05-21 23:31:27 -0700).

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-crashIssue: The compiler crashes (SIGSEGV, SIGABRT, etc). Use I-ICE instead when the compiler panics.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions