mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-01 15:01:51 +00:00
19 lines
250 B
Rust
19 lines
250 B
Rust
use std::marker::PhantomData;
|
|
|
|
pub trait Foo<P> { fn foo() {} }
|
|
|
|
pub trait Bar {
|
|
type Output: 'static;
|
|
}
|
|
|
|
impl Foo<i32> for i32 { }
|
|
|
|
impl<A:Bar> Foo<A::Output> for A { }
|
|
//~^ ERROR E0119
|
|
|
|
impl Bar for i32 {
|
|
type Output = i32;
|
|
}
|
|
|
|
fn main() {}
|