Skip to content

Commit f17c36e

Browse files
XanewokMark-Simulacrum
authored andcommitted
Test an assoc. type in struct member def inside fn
1 parent 6bd9305 commit f17c36e

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
// check-pass
2+
// compile-flags: -Zsave-analysis
3+
4+
trait Trait { type Assoc; }
5+
6+
fn main() {
7+
struct Data<T: Trait> {
8+
x: T::Assoc,
9+
}
10+
}

0 commit comments

Comments
 (0)