• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // A few tests for enum-related issues that should be tested with all the enum
2 // representations.
3 
4 struct foo {
5   enum {
6     FOO_A,
7     FOO_B,
8   } member;
9 };
10 
11 enum Foo {
12     Bar = 0,
13     Qux
14 };
15 
16 enum Neg {
17     MinusOne = -1,
18     One = 1,
19 };
20 
21 /** <div rustbindgen nodebug></div> */
22 enum NoDebug {
23     NoDebug1,
24     NoDebug2,
25 };
26 
27 /** <div rustbindgen derive="Debug"></div> */
28 enum Debug {
29     Debug1,
30     Debug2,
31 };