use std::marker::PhantomData; pub trait Foo
{ fn foo() {} } pub trait Bar { type Output: 'static; } impl Foo for i32 { } impl Foo for A { } //~^ ERROR E0119 impl Bar for i32 { type Output = i32; } fn main() {}