blob: 7bcd0f1fdaf6d55eac6f68382c99f508bf50df4e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
// check-pass
struct Node<C: Trait<Self>>(C::Assoc);
trait Trait<T> {
type Assoc;
}
impl<T> Trait<T> for Vec<()> {
type Assoc = Vec<T>;
}
fn main() {
let _ = Node::<Vec<()>>(Vec::new());
}
|