Skip to content

LLVM error, broken module on using newtype with a closure #22864

@yann-ledu

Description

@yann-ledu
fn main()
{
    struct Fun<F>(F);
    let f = Fun(|x| 3*x);
    let Fun(g) = f;
    println!("{:?}",g(4)); 
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-closuresArea: Closures (`|…| { … }`)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