blob: 2031a9a84d68f5451a94aa5e89ef30d84bda93c3 [file]
// regression test for #127351
#![feature(checked_type_aliases)]
type ExplicitTypeOutlives<T> = 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() {}