rustdoc: elide cross-crate default generic arguments
This commit is contained in:
parent
7cc36de72d
commit
58a80c85b9
9 changed files with 271 additions and 40 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue