about summary refs log tree commit diff
path: root/tests/ui/derives/duplicate-derive-copy-clone-diagnostics.rs
blob: c4fb620fea4f36fa208c998bb1f45063e032008e (plain)
1
2
3
4
5
6
7
8
9
10
11
// 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() {}