This commit is contained in:
Shotaro Yamada 2019-07-08 20:45:59 +09:00
parent 5f9e26382f
commit cc6dbb4f23
2 changed files with 6 additions and 2 deletions

View File

@ -2,7 +2,10 @@ use std::ops::Deref;
pub fn func<'a>(_x: impl Clone + Into<Vec<u8>> + 'a) {}
pub fn func2<T>(_x: impl Deref<Target = Option<T>> + Iterator<Item = T>, _y: impl Iterator<Item = u8>) {}
pub fn func2<T>(
_x: impl Deref<Target = Option<T>> + Iterator<Item = T>,
_y: impl Iterator<Item = u8>,
) {}
pub fn func3(_x: impl Iterator<Item = impl Iterator<Item = u8>> + Clone) {}

View File

@ -15,7 +15,8 @@ pub use impl_trait_aux::func;
pub use impl_trait_aux::func2;
// @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"]' "func3("
// @has - '//pre[@class="rust fn"]' "_x: impl Clone + Iterator<Item = impl Iterator<Item = u8>>)"
// @!has - '//pre[@class="rust fn"]' 'where'
pub use impl_trait_aux::func3;