mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-27 09:14:20 +00:00
18 lines
205 B
Rust
18 lines
205 B
Rust
//@ check-pass
|
|
|
|
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() {}
|