Skip to content

Segfault with generic functions #1443

@marijnh

Description

@marijnh
Contributor

The below code segfaults for me. Any further reduction seems to remove the problem.

fn baz<T, U>(s: T, f: block(T) -> U) { f(s); }
fn foo<T>(x: T) { baz(x, {|_e| 0 }); }
fn main() { foo(0); }

Metadata

Metadata

Assignees

No one assigned

    Labels

    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

        Participants

        @marijnh

        Issue actions

          Segfault with generic functions · Issue #1443 · rust-lang/rust