summaryrefslogtreecommitdiffstats
path: root/tests/ui/deriving/issue-105101.rs
blob: 1a377feb91948aecf12cda6f987e2b5d0caa2346 (plain)
1
2
3
4
5
6
7
8
9
// compile-flags: --crate-type=lib

#[derive(Default)] //~ ERROR multiple declared defaults
enum E {
    #[default]
    A,
    #[default]
    A, //~ ERROR defined multiple times
}