diff options
| author | Michael Goulet <michael@errs.io> | 2024-05-19 20:12:37 -0400 |
|---|---|---|
| committer | Michael Goulet <michael@errs.io> | 2024-05-19 20:13:18 -0400 |
| commit | dbfed2c43ec0ceb6c8215786917fc49af5cf511c (patch) | |
| tree | d2fd3f1c7cff85e77a85ffe3182562302c2a5e8b | |
| parent | d84b9037541f45dc2c52a41d723265af211c0497 (diff) | |
| download | rust-dbfed2c43ec0ceb6c8215786917fc49af5cf511c.tar.gz rust-dbfed2c43ec0ceb6c8215786917fc49af5cf511c.zip | |
Add failing test for cross-crate enum in type alias
| -rw-r--r-- | tests/rustdoc/auxiliary/cross_crate_generic_typedef.rs | 5 | ||||
| -rw-r--r-- | tests/rustdoc/typedef-inner-variants.rs | 7 |
2 files changed, 12 insertions, 0 deletions
diff --git a/tests/rustdoc/auxiliary/cross_crate_generic_typedef.rs b/tests/rustdoc/auxiliary/cross_crate_generic_typedef.rs index f4e020b3b95..d85129a69fc 100644 --- a/tests/rustdoc/auxiliary/cross_crate_generic_typedef.rs +++ b/tests/rustdoc/auxiliary/cross_crate_generic_typedef.rs @@ -3,3 +3,8 @@ pub struct InlineOne<A> { } pub type InlineU64 = InlineOne<u64>; + +pub enum GenericEnum<T> { + Variant(T), + Variant2(T, T), +} diff --git a/tests/rustdoc/typedef-inner-variants.rs b/tests/rustdoc/typedef-inner-variants.rs index d87a1cb6fac..0e65fdaf2af 100644 --- a/tests/rustdoc/typedef-inner-variants.rs +++ b/tests/rustdoc/typedef-inner-variants.rs @@ -117,3 +117,10 @@ pub type HighlyGenericAABB<A, B> = HighlyGenericStruct<A, A, B, B>; // @count - '//*[@id="variants"]' 0 // @count - '//*[@id="fields"]' 1 pub use cross_crate_generic_typedef::InlineU64; + +// @has 'inner_variants/type.InlineEnum.html' +// @count - '//*[@id="aliased-type"]' 1 +// @count - '//*[@id="variants"]' 1 +// @count - '//*[@id="fields"]' 0 +// @count - '//*[@class="variant"]' 2 +pub type InlineEnum = cross_crate_generic_typedef::GenericEnum<i32>; |
