]> git.lizzy.rs Git - rust.git/blob - tests/pretty/closure-reform-pretty.rs
Rollup merge of #107192 - fmease:mailmap-me-at-fmease-dev, r=albertlarsan68
[rust.git] / tests / pretty / closure-reform-pretty.rs
1 // Any copyright is dedicated to the Public Domain.
2 // http://creativecommons.org/publicdomain/zero/1.0/
3
4 // pp-exact
5
6 fn call_it(f: Box<FnMut(String) -> String>) {}
7
8 fn call_this<F>(f: F) where F: Fn(&str) + Send {}
9
10 fn call_that<F>(f: F) where F: for<'a> Fn(&'a isize, &'a isize) -> isize {}
11
12 fn call_extern(f: fn() -> isize) {}
13
14 fn call_abid_extern(f: extern "C" fn() -> isize) {}
15
16 pub fn main() {}