rust/tests/ui/deriving/issue-105101.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

10 lines
180 B
Rust
Raw Normal View History

2022-11-30 21:17:00 +00:00
// compile-flags: --crate-type=lib
#[derive(Default)] //~ ERROR multiple declared defaults
enum E {
#[default]
A,
#[default]
A, //~ ERROR defined multiple times
}