Skip to content

Commit dc050f6

Browse files
Add a test
1 parent fef38a6 commit dc050f6

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
// revisions: normalize_param_env normalize_obligation
2+
// check-pass
3+
// compile-flags: -Znext-solver
4+
5+
trait Foo {
6+
#[cfg(normalize_param_env)]
7+
type Gat<'a> where <Self as Mirror>::Assoc: 'a;
8+
#[cfg(normalize_obligation)]
9+
type Gat<'a> where Self: 'a;
10+
}
11+
12+
trait Mirror { type Assoc: ?Sized; }
13+
impl<T: ?Sized> Mirror for T { type Assoc = T; }
14+
15+
impl<T> Foo for T {
16+
#[cfg(normalize_param_env)]
17+
type Gat<'a> = i32 where T: 'a;
18+
#[cfg(normalize_obligation)]
19+
type Gat<'a> = i32 where <T as Mirror>::Assoc: 'a;
20+
}
21+
22+
fn main() {}

0 commit comments

Comments
 (0)