2019-06-21 12:23:05 +09:00
|
|
|
// aux-build:impl_trait_aux.rs
|
|
|
|
|
|
|
|
extern crate impl_trait_aux;
|
|
|
|
|
|
|
|
// @has impl_trait/fn.func.html
|
|
|
|
// @has - '//pre[@class="rust fn"]' "pub fn func<'a>(_x: impl Clone + Into<Vec<u8>> + 'a)"
|
|
|
|
// @!has - '//pre[@class="rust fn"]' 'where'
|
|
|
|
pub use impl_trait_aux::func;
|
|
|
|
|
2019-07-08 17:59:26 +09:00
|
|
|
// @has impl_trait/fn.func2.html
|
2019-07-08 20:42:45 +09:00
|
|
|
// @has - '//pre[@class="rust fn"]' "func2<T>("
|
2019-07-08 17:59:26 +09:00
|
|
|
// @has - '//pre[@class="rust fn"]' "_x: impl Deref<Target = Option<T>> + Iterator<Item = T>,"
|
|
|
|
// @has - '//pre[@class="rust fn"]' "_y: impl Iterator<Item = u8>)"
|
|
|
|
// @!has - '//pre[@class="rust fn"]' 'where'
|
|
|
|
pub use impl_trait_aux::func2;
|
|
|
|
|
2019-07-08 20:42:45 +09:00
|
|
|
// @has impl_trait/fn.func3.html
|
|
|
|
// @has - '//pre[@class="rust fn"]' "func3(_x: impl Clone + Iterator<Item = impl Iterator<Item = u8>>)"
|
|
|
|
// @!has - '//pre[@class="rust fn"]' 'where'
|
|
|
|
pub use impl_trait_aux::func3;
|
|
|
|
|
2019-06-21 12:23:05 +09:00
|
|
|
// @has impl_trait/struct.Foo.html
|
|
|
|
// @has - '//code[@id="method.v"]' "pub fn method<'a>(_x: impl Clone + Into<Vec<u8>> + 'a)"
|
|
|
|
// @!has - '//code[@id="method.v"]' 'where'
|
|
|
|
pub use impl_trait_aux::Foo;
|