diff options
| author | León Orell Valerian Liehr <me@fmease.dev> | 2023-06-22 10:42:02 +0200 |
|---|---|---|
| committer | León Orell Valerian Liehr <me@fmease.dev> | 2023-06-24 12:20:26 +0200 |
| commit | c643bedf7c90940005da021ba80b6c4e6dcbdaa5 (patch) | |
| tree | e3df03f501327263456f21edd625e35588f2d699 /tests/rustdoc/inline_cross/auxiliary | |
| parent | e0ba2d038db3afa968e13075b1d6eabd24339708 (diff) | |
rustdoc: render gen params & where-clauses of cross-crate assoc tys in impl blocks
Diffstat (limited to 'tests/rustdoc/inline_cross/auxiliary')
| -rw-r--r-- | tests/rustdoc/inline_cross/auxiliary/assoc_item_trait_bounds.rs | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/rustdoc/inline_cross/auxiliary/assoc_item_trait_bounds.rs b/tests/rustdoc/inline_cross/auxiliary/assoc_item_trait_bounds.rs index 6644c8e4147..551e97a2fa9 100644 --- a/tests/rustdoc/inline_cross/auxiliary/assoc_item_trait_bounds.rs +++ b/tests/rustdoc/inline_cross/auxiliary/assoc_item_trait_bounds.rs @@ -44,3 +44,20 @@ pub trait Helper { pub trait Aid<'src> { type Result<'inter: 'src>; } + +pub trait Implementee { + type Alias<T: Eq> + where + String: From<T>; +} + +pub struct Implementor; + +impl Implementee for Implementor { + type Alias<T: Eq> = T + where + String: From<T>, + // We will check that this bound doesn't get turned into an item bound since + // associated types in impls are not allowed to have any. + Self::Alias<T>: From<Self::Alias<T>>; +} |
