1
Fork 0

rustdoc: elide cross-crate default generic arguments

This commit is contained in:
León Orell Valerian Liehr 2023-06-09 15:30:08 +02:00
parent 7cc36de72d
commit 58a80c85b9
No known key found for this signature in database
GPG key ID: D17A07215F68E713
9 changed files with 271 additions and 40 deletions

View file

@ -4,7 +4,7 @@
extern crate impl_trait_aux;
// @has impl_trait/fn.func.html
// @has - '//pre[@class="rust item-decl"]' "pub fn func<'a>(_x: impl Clone + Into<Vec<u8, Global>> + 'a)"
// @has - '//pre[@class="rust item-decl"]' "pub fn func<'a>(_x: impl Clone + Into<Vec<u8>> + 'a)"
// @!has - '//pre[@class="rust item-decl"]' 'where'
pub use impl_trait_aux::func;
@ -34,6 +34,6 @@ pub use impl_trait_aux::func4;
pub use impl_trait_aux::func5;
// @has impl_trait/struct.Foo.html
// @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"]' "pub fn method<'a>(_x: impl Clone + Into<Vec<u8>> + 'a)"
// @!has - '//*[@id="method.method"]//h4[@class="code-header"]' 'where'
pub use impl_trait_aux::Foo;