1 // Test the inference errors in case the relevant path
4 // Regression test for #97698.
10 type DirectAlias<T> = Ty<T>;
13 //~^ ERROR type annotations needed
16 type IndirectAlias<T> = Ty<Box<T>>;
19 // FIXME: This should also emit an error.
21 // Added it separately as `type-alias-indirect.rs`
22 // where it does error.
25 struct TyDefault<T, U = u32>(T, U);
26 impl<T> TyDefault<T> {
30 type DirectButWithDefaultAlias<T> = TyDefault<T>;
31 fn direct_but_with_default_alias() {
32 DirectButWithDefaultAlias::new();
33 //~^ ERROR type annotations needed