]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-23024.rs
Remove licenses
[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<Any>> = vec![];
8     vfnfer.push(box h);
9     println!("{:?}",(vfnfer[0] as Fn)(3));
10     //~^ ERROR the precise format of `Fn`-family traits'
11     //~| ERROR wrong number of type arguments: expected 1, found 0 [E0107]
12     //~| ERROR the value of the associated type `Output` (from the trait `std::ops::FnOnce`)
13 }