blob: 9545a9eed2f1309ba665afa58903f123f3c9bee9 [file] [log] [blame]
// Make sure we don't ICE when trying to name the regions that appear in the alias
// of the type test error.
trait AnotherTrait {
type Ty2<'a>;
}
fn test_alias<T: AnotherTrait>(_: &'static T::Ty2<'_>) {
let _: &'static T::Ty2<'_>;
//~^ ERROR the associated type `<T as AnotherTrait>::Ty2<'_>` may not live long enough
}
fn main() {}