diff options
Diffstat (limited to 'tests/ui/deriving/issue-105101.rs')
-rw-r--r-- | tests/ui/deriving/issue-105101.rs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/ui/deriving/issue-105101.rs b/tests/ui/deriving/issue-105101.rs new file mode 100644 index 000000000..1a377feb9 --- /dev/null +++ b/tests/ui/deriving/issue-105101.rs @@ -0,0 +1,9 @@ +// compile-flags: --crate-type=lib + +#[derive(Default)] //~ ERROR multiple declared defaults +enum E { + #[default] + A, + #[default] + A, //~ ERROR defined multiple times +} |