Add failing test for cross-crate enum in type alias

This commit is contained in:
Michael Goulet 2024-05-19 20:12:37 -04:00
parent d84b903754
commit dbfed2c43e
2 changed files with 12 additions and 0 deletions

View File

@ -3,3 +3,8 @@ pub struct InlineOne<A> {
}
pub type InlineU64 = InlineOne<u64>;
pub enum GenericEnum<T> {
Variant(T),
Variant2(T, T),
}

View File

@ -117,3 +117,10 @@ pub struct HighlyGenericStruct<A, B, C, D> {
// @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>;