2 // Tests that the re-exports of `FnOnce` et al from the prelude work.
4 // pretty-expanded FIXME #23616
7 let task: Box<dyn Fn(isize) -> isize> = Box::new(|x| x);
10 let mut task: Box<dyn FnMut(isize) -> isize> = Box::new(|x| x);
16 fn call<F:FnOnce(isize) -> isize>(f: F, x: isize) -> isize {