Skip to content

internal compiler error: cat_expr Errd when downcasting #23041

Closed
@yann-ledu

Description

@yann-ledu
#![feature(box_syntax)]
use std::any::Any;
fn main()
{
    fn bar(x:i32) ->i32 { 3*x };
    let b:Box<Any> = box {bar as fn(_)->_};
    b.downcast_ref::<fn(_)->_>();
}

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

    Issue actions