2019-06-20 22:23:05 -05:00
|
|
|
// aux-build:impl_trait_aux.rs
|
2019-09-21 03:14:41 -05:00
|
|
|
// edition:2018
|
2019-06-20 22:23:05 -05:00
|
|
|
|
|
|
|
extern crate impl_trait_aux;
|
|
|
|
|
|
|
|
// @has impl_trait/fn.func.html
|
2023-01-14 11:58:55 -06:00
|
|
|
// @has - '//div[@class="item-decl"]/pre[@class="rust"]' "pub fn func<'a>(_x: impl Clone + Into<Vec<u8, Global>> + 'a)"
|
|
|
|
// @!has - '//div[@class="item-decl"]/pre[@class="rust"]' 'where'
|
2019-06-20 22:23:05 -05:00
|
|
|
pub use impl_trait_aux::func;
|
|
|
|
|
2019-07-08 03:59:26 -05:00
|
|
|
// @has impl_trait/fn.func2.html
|
2023-01-14 11:58:55 -06:00
|
|
|
// @has - '//div[@class="item-decl"]/pre[@class="rust"]' "func2<T>("
|
|
|
|
// @has - '//div[@class="item-decl"]/pre[@class="rust"]' "_x: impl Deref<Target = Option<T>> + Iterator<Item = T>,"
|
|
|
|
// @has - '//div[@class="item-decl"]/pre[@class="rust"]' "_y: impl Iterator<Item = u8>)"
|
|
|
|
// @!has - '//div[@class="item-decl"]/pre[@class="rust"]' 'where'
|
2019-07-08 03:59:26 -05:00
|
|
|
pub use impl_trait_aux::func2;
|
|
|
|
|
2019-07-08 06:42:45 -05:00
|
|
|
// @has impl_trait/fn.func3.html
|
2023-01-14 11:58:55 -06:00
|
|
|
// @has - '//div[@class="item-decl"]/pre[@class="rust"]' "func3("
|
|
|
|
// @has - '//div[@class="item-decl"]/pre[@class="rust"]' "_x: impl Iterator<Item = impl Iterator<Item = u8>> + Clone)"
|
|
|
|
// @!has - '//div[@class="item-decl"]/pre[@class="rust"]' 'where'
|
2019-07-08 06:42:45 -05:00
|
|
|
pub use impl_trait_aux::func3;
|
|
|
|
|
2019-07-09 02:59:34 -05:00
|
|
|
// @has impl_trait/fn.func4.html
|
2023-01-14 11:58:55 -06:00
|
|
|
// @has - '//div[@class="item-decl"]/pre[@class="rust"]' "func4<T>("
|
|
|
|
// @has - '//div[@class="item-decl"]/pre[@class="rust"]' "T: Iterator<Item = impl Clone>,"
|
2019-07-09 02:59:34 -05:00
|
|
|
pub use impl_trait_aux::func4;
|
|
|
|
|
2022-10-04 07:08:25 -05:00
|
|
|
// @has impl_trait/fn.func5.html
|
2023-01-14 11:58:55 -06:00
|
|
|
// @has - '//div[@class="item-decl"]/pre[@class="rust"]' "func5("
|
|
|
|
// @has - '//div[@class="item-decl"]/pre[@class="rust"]' "_f: impl for<'any> Fn(&'any str, &'any str) -> bool + for<'r> Other<T<'r> = ()>,"
|
|
|
|
// @has - '//div[@class="item-decl"]/pre[@class="rust"]' "_a: impl for<'alpha, 'beta> Auxiliary<'alpha, Item<'beta> = fn(_: &'beta ())>"
|
|
|
|
// @!has - '//div[@class="item-decl"]/pre[@class="rust"]' 'where'
|
2022-10-04 07:08:25 -05:00
|
|
|
pub use impl_trait_aux::func5;
|
|
|
|
|
2019-09-21 03:14:41 -05:00
|
|
|
// @has impl_trait/fn.async_fn.html
|
2023-01-14 11:58:55 -06:00
|
|
|
// @has - '//div[@class="item-decl"]/pre[@class="rust"]' "pub async fn async_fn()"
|
2019-09-21 03:14:41 -05:00
|
|
|
pub use impl_trait_aux::async_fn;
|
|
|
|
|
2019-06-20 22:23:05 -05:00
|
|
|
// @has impl_trait/struct.Foo.html
|
2021-07-25 16:41:57 -05:00
|
|
|
// @has - '//*[@id="method.method"]//h4[@class="code-header"]' "pub fn method<'a>(_x: impl Clone + Into<Vec<u8, Global>> + 'a)"
|
|
|
|
// @!has - '//*[@id="method.method"]//h4[@class="code-header"]' 'where'
|
2019-06-20 22:23:05 -05:00
|
|
|
pub use impl_trait_aux::Foo;
|
2019-09-21 03:14:41 -05:00
|
|
|
|
|
|
|
// @has impl_trait/struct.Bar.html
|
|
|
|
// @has - '//*[@id="method.async_foo"]' "pub async fn async_foo("
|
|
|
|
pub use impl_trait_aux::Bar;
|