2018-02-07 07:14:37 -06:00
|
|
|
//@ aux-build:unit-return.rs
|
|
|
|
|
|
|
|
#![crate_name = "foo"]
|
|
|
|
|
|
|
|
extern crate unit_return;
|
|
|
|
|
2024-06-21 07:03:08 -05: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) {}
|
|
|
|
|
2024-06-21 07:03:08 -05: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) {}
|
|
|
|
|
2024-06-21 07:03:08 -05: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;
|
|
|
|
|
2024-06-21 07:03:08 -05: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;
|