2016-01-02 04:57:55 -05:00
|
|
|
use std::marker::PhantomData;
|
|
|
|
|
2017-02-25 16:16:27 -05:00
|
|
|
pub trait Foo<P> { fn foo() {} }
|
2016-01-02 04:57:55 -05:00
|
|
|
|
|
|
|
pub trait Bar {
|
|
|
|
type Output: 'static;
|
|
|
|
}
|
|
|
|
|
2016-01-29 16:25:18 -08:00
|
|
|
impl Foo<i32> for i32 { }
|
2016-01-02 04:57:55 -05:00
|
|
|
|
2018-12-29 00:11:13 +01:00
|
|
|
impl<A:Bar> Foo<A::Output> for A { }
|
2019-10-26 17:28:02 +02:00
|
|
|
//~^ ERROR E0119
|
2016-01-02 04:57:55 -05:00
|
|
|
|
|
|
|
impl Bar for i32 {
|
|
|
|
type Output = i32;
|
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {}
|