X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=tests%2Frustdoc%2Finline_cross%2Fimpl_trait.rs;h=e8587209b61655ea358c161a77580a1c4a2e9d22;hb=8ae5116faeedcb325c0cc49d9c0f36ceaeba5616;hp=9c4f646592038e6ec62fe4036f2b47c4aef8f794;hpb=720137b5da252d1948fb776827ea49b1842d1fdf;p=rust.git diff --git a/tests/rustdoc/inline_cross/impl_trait.rs b/tests/rustdoc/inline_cross/impl_trait.rs index 9c4f6465920..e8587209b61 100644 --- a/tests/rustdoc/inline_cross/impl_trait.rs +++ b/tests/rustdoc/inline_cross/impl_trait.rs @@ -4,37 +4,37 @@ extern crate impl_trait_aux; // @has impl_trait/fn.func.html -// @has - '//pre[@class="rust fn"]' "pub fn func<'a>(_x: impl Clone + Into> + 'a)" -// @!has - '//pre[@class="rust fn"]' 'where' +// @has - '//div[@class="item-decl"]/pre[@class="rust"]' "pub fn func<'a>(_x: impl Clone + Into> + 'a)" +// @!has - '//div[@class="item-decl"]/pre[@class="rust"]' 'where' pub use impl_trait_aux::func; // @has impl_trait/fn.func2.html -// @has - '//pre[@class="rust fn"]' "func2(" -// @has - '//pre[@class="rust fn"]' "_x: impl Deref> + Iterator," -// @has - '//pre[@class="rust fn"]' "_y: impl Iterator)" -// @!has - '//pre[@class="rust fn"]' 'where' +// @has - '//div[@class="item-decl"]/pre[@class="rust"]' "func2(" +// @has - '//div[@class="item-decl"]/pre[@class="rust"]' "_x: impl Deref> + Iterator," +// @has - '//div[@class="item-decl"]/pre[@class="rust"]' "_y: impl Iterator)" +// @!has - '//div[@class="item-decl"]/pre[@class="rust"]' 'where' pub use impl_trait_aux::func2; // @has impl_trait/fn.func3.html -// @has - '//pre[@class="rust fn"]' "func3(" -// @has - '//pre[@class="rust fn"]' "_x: impl Iterator> + Clone)" -// @!has - '//pre[@class="rust fn"]' 'where' +// @has - '//div[@class="item-decl"]/pre[@class="rust"]' "func3(" +// @has - '//div[@class="item-decl"]/pre[@class="rust"]' "_x: impl Iterator> + Clone)" +// @!has - '//div[@class="item-decl"]/pre[@class="rust"]' 'where' pub use impl_trait_aux::func3; // @has impl_trait/fn.func4.html -// @has - '//pre[@class="rust fn"]' "func4(" -// @has - '//pre[@class="rust fn"]' "T: Iterator," +// @has - '//div[@class="item-decl"]/pre[@class="rust"]' "func4(" +// @has - '//div[@class="item-decl"]/pre[@class="rust"]' "T: Iterator," pub use impl_trait_aux::func4; // @has impl_trait/fn.func5.html -// @has - '//pre[@class="rust fn"]' "func5(" -// @has - '//pre[@class="rust fn"]' "_f: impl for<'any> Fn(&'any str, &'any str) -> bool + for<'r> Other = ()>," -// @has - '//pre[@class="rust fn"]' "_a: impl for<'alpha, 'beta> Auxiliary<'alpha, Item<'beta> = fn(_: &'beta ())>" -// @!has - '//pre[@class="rust fn"]' 'where' +// @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 = ()>," +// @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' pub use impl_trait_aux::func5; // @has impl_trait/fn.async_fn.html -// @has - '//pre[@class="rust fn"]' "pub async fn async_fn()" +// @has - '//div[@class="item-decl"]/pre[@class="rust"]' "pub async fn async_fn()" pub use impl_trait_aux::async_fn; // @has impl_trait/struct.Foo.html