Skip to content

Commit 9166f3e

Browse files
committed
Add another test
1 parent 835fa68 commit 9166f3e

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

tests/test/projection.rs

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,31 @@ fn projection_equality() {
148148
}
149149
}
150150

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+
151176
#[test]
152177
fn normalize_gat1() {
153178
test! {

0 commit comments

Comments
 (0)