summary refs log tree commit diff
path: root/src/test/ui/issues/issue-23041.rs
blob: a18e85806d918a5922ee593b98282a05ad8318f4 (plain)
1
2
3
4
5
6
7
use std::any::Any;
fn main()
{
    fn bar(x:i32) ->i32 { 3*x };
    let b:Box<Any> = Box::new(bar as fn(_)->_);
    b.downcast_ref::<fn(_)->_>(); //~ ERROR E0282
}