rust/src/test/ui/coherence/coherence-projection-conflict.rs
Georg Semmler 464b4dcb2b
Unify tests
Implement compile tests as variants of existing tests
2019-01-03 22:27:06 +01:00

24 lines
350 B
Rust

// revisions: old re
#![cfg_attr(re, feature(re_rebalance_coherence))]
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 { }
//[old]~^ ERROR E0119
//[re]~^^ ERROR E0119
impl Bar for i32 {
type Output = i32;
}
fn main() {}