VulnBandit | e3029ab | 2024-10-02 13:11:16 | [diff] [blame] | 1 | // Duplicate implementations of Copy/Clone should not trigger |
2 | // borrow check warnings | ||||
3 | // See #131083 | ||||
4 | |||||
5 | #[derive(Copy, Clone)] | ||||
6 | #[derive(Copy, Clone)] | ||||
7 | //~^ ERROR conflicting implementations of trait `Clone` for type `E` | ||||
8 | //~| ERROR conflicting implementations of trait `Copy` for type `E` | ||||
9 | enum E {} | ||||
10 | |||||
11 | fn main() {} |