2016-11-13 10:54:39 -06:00
|
|
|
// check that error types in coherence do not cause error cascades.
|
|
|
|
|
|
|
|
trait Foo {}
|
|
|
|
|
|
|
|
impl Foo for i8 {}
|
|
|
|
impl Foo for i16 {}
|
|
|
|
impl Foo for i32 {}
|
|
|
|
impl Foo for i64 {}
|
2018-12-28 17:11:13 -06:00
|
|
|
impl Foo for DoesNotExist {}
|
2019-10-26 10:28:02 -05:00
|
|
|
//~^ ERROR E0412
|
2016-11-13 10:54:39 -06:00
|
|
|
impl Foo for u8 {}
|
|
|
|
impl Foo for u16 {}
|
|
|
|
impl Foo for u32 {}
|
|
|
|
impl Foo for u64 {}
|
|
|
|
|
|
|
|
fn main() {}
|