We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fef38a6 commit dc050f6Copy full SHA for dc050f6
tests/ui/traits/next-solver/normalize-region-obligations.rs
@@ -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
17
+ type Gat<'a> = i32 where T: 'a;
18
19
+ type Gat<'a> = i32 where <T as Mirror>::Assoc: 'a;
20
21
22
+fn main() {}
0 commit comments