about summary refs log tree commit diff
path: root/src/test/ui/coherence/coherence-projection-ok.rs
blob: 74d44eb14b5b55036ede39b4a71d4609d6824377 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// compile-pass
// skip-codegen
pub trait Foo<P> {}

pub trait Bar {
    type Output: 'static;
}

impl Foo<i32> for i32 { }

impl<A:Bar> Foo<A::Output> for A { }

impl Bar for i32 {
    type Output = u32;
}


fn main() {}