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 24041fe commit 0a93698Copy full SHA for 0a93698
tests/test/existential_types.rs
@@ -6,23 +6,31 @@ use super::*;
6
fn opaque_bounds() {
7
test! {
8
program {
9
- trait Trait { }
+ trait Direct { }
10
+ trait Indirect { }
11
struct Ty { }
- impl Trait for Ty { }
12
+ impl Direct for Ty { }
13
+ impl Indirect for Ty { }
14
- opaque type T: Trait = Ty;
15
+ opaque type T: Direct = Ty;
16
+ }
17
+
18
+ goal {
19
+ T: Direct
20
+ } yields {
21
+ "Unique; substitution []"
22
}
23
24
goal {
25
if (Reveal) {
- T: Trait
26
+ T: Indirect
27
28
} yields {
29
"Unique; substitution []"
30
31
32
33
34
35
"No possible solution"
36
0 commit comments