Skip to content

Commit 0a93698

Browse files
committed
Change test to be correct
1 parent 24041fe commit 0a93698

File tree

1 file changed

+13
-5
lines changed

1 file changed

+13
-5
lines changed

tests/test/existential_types.rs

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,23 +6,31 @@ use super::*;
66
fn opaque_bounds() {
77
test! {
88
program {
9-
trait Trait { }
9+
trait Direct { }
10+
trait Indirect { }
1011
struct Ty { }
11-
impl Trait for Ty { }
12+
impl Direct for Ty { }
13+
impl Indirect for Ty { }
1214

13-
opaque type T: Trait = Ty;
15+
opaque type T: Direct = Ty;
16+
}
17+
18+
goal {
19+
T: Direct
20+
} yields {
21+
"Unique; substitution []"
1422
}
1523

1624
goal {
1725
if (Reveal) {
18-
T: Trait
26+
T: Indirect
1927
}
2028
} yields {
2129
"Unique; substitution []"
2230
}
2331

2432
goal {
25-
T: Trait
33+
T: Indirect
2634
} yields {
2735
"No possible solution"
2836
}

0 commit comments

Comments
 (0)