// regression test for #127351 #![feature(lazy_type_alias)] //~^ WARN the feature `lazy_type_alias` is incomplete type ExplicitTypeOutlives = T; pub struct Warns { _significant_drop: ExplicitTypeOutlives, //~^ ERROR missing generics for type alias `ExplicitTypeOutlives` field: String, } pub fn test(w: Warns) { let _ = || drop(w.field); } fn main() {}