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