1 2 3 4 5 6 7
// run-pass pub fn main() { struct Fun<F>(F); let f = Fun(|x| 3*x); let Fun(g) = f; println!("{:?}",g(4)); }