Files
rust/tests/ui/derives/clone-copy/duplicate-derive-copy-clone-diagnostics.rs
T
2026-04-22 20:22:40 +00:00

12 lines
310 B
Rust

// Duplicate implementations of Copy/Clone should not trigger
// borrow check warnings
// See #131083
#[derive(Copy, Clone)]
#[derive(Copy, Clone)]
//~^ ERROR conflicting implementations of trait `Clone` for type `E`
//~| ERROR conflicting implementations of trait `Copy` for type `E`
enum E {}
fn main() {}