about summary refs log tree commit diff
path: root/tests/ui/associated-types/issue-43475.rs
blob: 939a9b2a6ca93d3fec43e920d3d195de73f958f0 (plain)
1
2
3
4
5
6
7
8
9
10
//@ check-pass

trait Foo { type FooT: Foo; }
impl Foo for () { type FooT = (); }
trait Bar<T: Foo> { type BarT: Bar<T::FooT>; }
impl Bar<()> for () { type BarT = (); }

#[allow(dead_code)]
fn test<C: Bar<()>>() { }
fn main() { }