rust/src/test/ui/coherence/coherence-projection-ok.rs

22 lines
294 B
Rust
Raw Normal View History

// compile-pass
// skip-codegen
// revisions: old re
#![cfg_attr(re, feature(re_rebalance_coherence))]
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() {}