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