We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 835fa68 commit 9166f3eCopy full SHA for 9166f3e
tests/test/projection.rs
@@ -148,6 +148,31 @@ fn projection_equality() {
148
}
149
150
151
+#[test]
152
+fn projection_equality_from_env() {
153
+ test! {
154
+ program {
155
+ trait Trait1 {
156
+ type Type;
157
+ }
158
+
159
+ struct u32 {}
160
161
162
+ goal {
163
+ forall<T> {
164
+ if (T: Trait1<Type = u32>) {
165
+ exists<U> {
166
+ <T as Trait1>::Type = U
167
168
169
170
+ } yields[SolverChoice::recursive()] {
171
+ "Unique; substitution [?0 := u32]"
172
173
174
+}
175
176
#[test]
177
fn normalize_gat1() {
178
test! {
0 commit comments