diff options
| author | León Orell Valerian Liehr <me@fmease.dev> | 2023-06-09 15:30:08 +0200 |
|---|---|---|
| committer | León Orell Valerian Liehr <me@fmease.dev> | 2023-10-30 16:44:52 +0100 |
| commit | 58a80c85b9323e59e1b7e744d6782997a3dcb5ce (patch) | |
| tree | cd8eef91c8cda7475b0fb55085b15c905794b17d /tests/rustdoc/inline_cross/dyn_trait.rs | |
| parent | 7cc36de72d9a5fd6881946c673ff47586214ad1e (diff) | |
| download | rust-58a80c85b9323e59e1b7e744d6782997a3dcb5ce.tar.gz rust-58a80c85b9323e59e1b7e744d6782997a3dcb5ce.zip | |
rustdoc: elide cross-crate default generic arguments
Diffstat (limited to 'tests/rustdoc/inline_cross/dyn_trait.rs')
| -rw-r--r-- | tests/rustdoc/inline_cross/dyn_trait.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/rustdoc/inline_cross/dyn_trait.rs b/tests/rustdoc/inline_cross/dyn_trait.rs index 679972f035a..9871be79ca3 100644 --- a/tests/rustdoc/inline_cross/dyn_trait.rs +++ b/tests/rustdoc/inline_cross/dyn_trait.rs @@ -75,16 +75,16 @@ pub use dyn_trait::AmbiguousBoundWrappedEarly1; pub use dyn_trait::AmbiguousBoundWrappedStatic; // @has user/type.NoBoundsWrappedDefaulted.html -// @has - '//*[@class="rust item-decl"]//code' "Box<dyn Trait, Global>;" +// @has - '//*[@class="rust item-decl"]//code' "Box<dyn Trait>;" pub use dyn_trait::NoBoundsWrappedDefaulted; // @has user/type.NoBoundsWrappedEarly.html -// @has - '//*[@class="rust item-decl"]//code' "Box<dyn Trait + 'e, Global>;" +// @has - '//*[@class="rust item-decl"]//code' "Box<dyn Trait + 'e>;" pub use dyn_trait::NoBoundsWrappedEarly; // @has user/fn.nbwl.html -// @has - '//pre[@class="rust item-decl"]' "nbwl<'l>(_: Box<dyn Trait + 'l, Global>)" +// @has - '//pre[@class="rust item-decl"]' "nbwl<'l>(_: Box<dyn Trait + 'l>)" pub use dyn_trait::no_bounds_wrapped_late as nbwl; // @has user/fn.nbwel.html -// @has - '//pre[@class="rust item-decl"]' "nbwel(_: Box<dyn Trait + '_, Global>)" +// @has - '//pre[@class="rust item-decl"]' "nbwel(_: Box<dyn Trait + '_>)" // NB: It might seem counterintuitive to display the explicitly elided lifetime `'_` here instead of // eliding it but this behavior is correct: The default is `'static` here which != `'_`. pub use dyn_trait::no_bounds_wrapped_elided as nbwel; |
