Skip to content

Commit 429fc9d

Browse files
committed
Test an assoc. type in struct member def inside fn
1 parent 1721c96 commit 429fc9d

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed
+10
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)