2018-02-07 07:14:37 -06:00
|
|
|
// aux-build:unit-return.rs
|
|
|
|
|
|
|
|
#![crate_name = "foo"]
|
|
|
|
|
|
|
|
extern crate unit_return;
|
|
|
|
|
2023-01-14 11:58:55 -06:00
|
|
|
// @has 'foo/fn.f0.html' '//div[@class="item-decl"]/pre[@class="rust"]' 'F: FnMut(u8) + Clone'
|
2018-02-07 07:14:37 -06:00
|
|
|
pub fn f0<F: FnMut(u8) + Clone>(f: F) {}
|
|
|
|
|
2023-01-14 11:58:55 -06:00
|
|
|
// @has 'foo/fn.f1.html' '//div[@class="item-decl"]/pre[@class="rust"]' 'F: FnMut(u16) + Clone'
|
2018-02-07 07:14:37 -06:00
|
|
|
pub fn f1<F: FnMut(u16) -> () + Clone>(f: F) {}
|
|
|
|
|
2023-01-14 11:58:55 -06:00
|
|
|
// @has 'foo/fn.f2.html' '//div[@class="item-decl"]/pre[@class="rust"]' 'F: FnMut(u32) + Clone'
|
2018-02-07 07:14:37 -06:00
|
|
|
pub use unit_return::f2;
|
|
|
|
|
2023-01-14 11:58:55 -06:00
|
|
|
// @has 'foo/fn.f3.html' '//div[@class="item-decl"]/pre[@class="rust"]' 'F: FnMut(u64) + Clone'
|
2018-02-07 07:14:37 -06:00
|
|
|
pub use unit_return::f3;
|