]> git.lizzy.rs Git - rust.git/blob - src/test/pretty/closure-reform-pretty.rs
Rollup merge of #103305 - c410-f3r:moar-errors, r=petrochenkov
[rust.git] / src / test / 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() {}