diff options
author | Christian Vetter <christian.vetter@here.com> | 2021-08-03 09:03:46 +0200 |
---|---|---|
committer | Emilio Cobos Álvarez <emilio@crisal.io> | 2021-08-24 11:49:26 +0200 |
commit | 098b416283610b3adbb5a51325644a8a66a4bfd2 (patch) | |
tree | 5469f5951561cd9fba12d04e4253e5827ac0d1ad /tests/headers/enum.h | |
parent | 0f641061a78b8af93e977e072cfd8106461b3ca5 (diff) |
Use annotations on enumerations: This enables users to add additional derives, or prevent deriving traits
Fixes #2076
Diffstat (limited to 'tests/headers/enum.h')
-rw-r--r-- | tests/headers/enum.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/headers/enum.h b/tests/headers/enum.h index 8b41f855..0147433e 100644 --- a/tests/headers/enum.h +++ b/tests/headers/enum.h @@ -23,3 +23,9 @@ enum NoDebug { NoDebug1, NoDebug2, }; + +/** <div rustbindgen derive="Debug"></div> */ +enum Debug { + Debug1, + Debug2, +};
\ No newline at end of file |