]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-23024.rs
Rollup merge of #92942 - Xaeroxe:raw_arg, r=dtolnay
[rust.git] / src / test / ui / issues / issue-23024.rs
1 #![feature(box_syntax)]
2 use std::any::Any;
3
4 fn main()
5 {
6     fn h(x:i32) -> i32 {3*x}
7     let mut vfnfer:Vec<Box<dyn Any>> = vec![];
8     vfnfer.push(box h);
9     println!("{:?}",(vfnfer[0] as dyn Fn)(3));
10     //~^ ERROR the precise format of `Fn`-family traits'
11     //~| ERROR missing generics for trait `Fn`
12     //~| ERROR the value of the associated type `Output` (from trait `FnOnce`)
13 }