Skip to content

Commit

Permalink
Fix tidy
Browse files Browse the repository at this point in the history
  • Loading branch information
sinkuu committed Aug 19, 2019
1 parent 5f9e263 commit cc6dbb4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
5 changes: 4 additions & 1 deletion src/test/rustdoc/inline_cross/auxiliary/impl_trait_aux.rs
Expand Up @@ -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) {}

Expand Down
3 changes: 2 additions & 1 deletion src/test/rustdoc/inline_cross/impl_trait.rs
Expand Up @@ -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;

Expand Down

0 comments on commit cc6dbb4

Please sign in to comment.