mirror of
https://git.proxmox.com/git/rustc
synced 2025-05-02 17:25:45 +00:00
17 lines
301 B
Rust
17 lines
301 B
Rust
// 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 {}
|
|
impl Foo for DoesNotExist {}
|
|
//~^ ERROR E0412
|
|
impl Foo for u8 {}
|
|
impl Foo for u16 {}
|
|
impl Foo for u32 {}
|
|
impl Foo for u64 {}
|
|
|
|
fn main() {}
|