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