]>
git.proxmox.com Git - rustc.git/blob - src/test/pretty/closure-reform-pretty.rs
1 // Any copyright is dedicated to the Public Domain.
2 // http://creativecommons.org/publicdomain/zero/1.0/
6 fn call_it(f
: Box
<FnMut(String
) -> String
>) {}
8 fn call_this
<F
>(f
: F
) where F
: Fn(&str) + Send {}
10 fn call_that
<F
>(f
: F
) where F
: for<'a
> Fn(&'a
isize, &'a
isize) -> isize {}
12 fn call_extern(f
: fn() -> isize) {}
14 fn call_abid_extern(f
: extern "C" fn() -> isize) {}