// revisions: normalize_param_env normalize_obligation // check-pass // compile-flags: -Znext-solver trait Foo { #[cfg(normalize_param_env)] type Gat<'a> where ::Assoc: 'a; #[cfg(normalize_obligation)] type Gat<'a> where Self: 'a; } trait Mirror { type Assoc: ?Sized; } impl Mirror for T { type Assoc = T; } impl Foo for T { #[cfg(normalize_param_env)] type Gat<'a> = i32 where T: 'a; #[cfg(normalize_obligation)] type Gat<'a> = i32 where ::Assoc: 'a; } fn main() {}