summaryrefslogtreecommitdiffstats
path: root/third_party/rust/enumset/tests/compile-fail/variants.stderr
blob: 635fa56c86d0bf5ade67d978fb995b7e5923bdef (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
error: Enum discriminants must not be negative.
 --> tests/compile-fail/variants.rs:5:15
  |
5 |     Variant = -1,
  |               ^^

error: `#[derive(EnumSetType)]` can only be used on fieldless enums.
  --> tests/compile-fail/variants.rs:10:5
   |
10 |     Variant(u32),
   |     ^^^^^^^^^^^^

error: `repr` is too small to contain the largest discriminant.
  --> tests/compile-fail/variants.rs:16:5
   |
16 |     Variant = 128,
   |     ^^^^^^^^^^^^^

error: `serialize_repr` is too small to contain the largest discriminant.
  --> tests/compile-fail/variants.rs:22:5
   |
22 |     Variant = 8,
   |     ^^^^^^^^^^^

error: Enum discriminants must be literal expressions.
  --> tests/compile-fail/variants.rs:27:5
   |
27 |     Variant = 1 + 1,
   |     ^^^^^^^^^^^^^^^

error: `repr` is too small to contain the largest discriminant.
  --> tests/compile-fail/variants.rs:33:5
   |
33 |     Variant = 16,
   |     ^^^^^^^^^^^^

error: Maximum discriminant allowed is `0xFFFFFFBF`.
  --> tests/compile-fail/variants.rs:38:5
   |
38 |     Variant = 0xFFFFFFD0,
   |     ^^^^^^^^^^^^^^^^^^^^