2019-06-12 18:18:32 +03:00
|
|
|
//@ check-pass
|
|
|
|
|
|
2016-01-02 04:57:55 -05:00
|
|
|
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;
|
|
|
|
|
}
|
|
|
|
|
|
2018-10-31 13:08:01 +01:00
|
|
|
fn main() {}
|