co3 0.3.1

Build C API from Rust
Documentation
error[E0731]: transparent enum needs exactly one variant, but has 2
 --> tests/ui_fail/multiple_fields_transparent.rs:5:1
  |
5 | enum MultiVariantEnum<T> {
  | ^^^^^^^^^^^^^^^^^^^^^^^^ needs exactly one variant, but has 2
6 |     A { itm: T },
  |     - variant here
7 |     B,
  |     - too many variants in `MultiVariantEnum`

error[E0690]: the variant of a transparent enum needs at most one non-trivial field, but has 2
  --> tests/ui_fail/multiple_fields_transparent.rs:12:1
   |
12 | enum MultiFieldEnum<T> {
   | ^^^^^^^^^^^^^^^^^^^^^^ needs at most one non-trivial field, but has 2
13 |     A(T, T),
   |       -  - this field is generic and hence may have non-zero size
   |       |
   |       this field is generic and hence may have non-zero size

error[E0690]: transparent struct needs at most one non-trivial field, but has 2
  --> tests/ui_fail/multiple_fields_transparent.rs:10:10
   |
10 | #[derive(ReprC)]
   |          ^^^^^
   |          |
   |          needs at most one non-trivial field, but has 2
   |          this field is generic and hence may have non-zero size
   |          this field is generic and hence may have non-zero size
   |
   = note: this error originates in the derive macro `ReprC` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0690]: the variant of a transparent enum needs at most one non-trivial field, but has 2
  --> tests/ui_fail/multiple_fields_transparent.rs:12:1
   |
10 |   #[derive(ReprC)]
   |            -----
   |            |
   |            this field is generic and hence may have non-zero size
   |            this field is generic and hence may have non-zero size
11 |   #[repr(transparent)]
12 | / enum MultiFieldEnum<T> {
13 | |     A(T, T),
14 | | }
   | |_^ needs at most one non-trivial field, but has 2

error[E0690]: transparent struct needs at most one non-trivial field, but has 2
  --> tests/ui_fail/multiple_fields_transparent.rs:18:1
   |
18 | struct MultiFieldStruct<T>(T, T);
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^ -  - this field is generic and hence may have non-zero size
   | |                          |
   | |                          this field is generic and hence may have non-zero size
   | needs at most one non-trivial field, but has 2

error[E0690]: transparent struct needs at most one non-trivial field, but has 2
  --> tests/ui_fail/multiple_fields_transparent.rs:16:10
   |
16 | #[derive(ReprC)]
   |          ^^^^^
   |          |
   |          needs at most one non-trivial field, but has 2
   |          this field is generic and hence may have non-zero size
   |          this field is generic and hence may have non-zero size
   |
   = note: this error originates in the derive macro `ReprC` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0690]: transparent struct needs at most one non-trivial field, but has 2
  --> tests/ui_fail/multiple_fields_transparent.rs:18:1
   |
16 | #[derive(ReprC)]
   |          -----
   |          |
   |          this field is generic and hence may have non-zero size
   |          this field is generic and hence may have non-zero size
17 | #[repr(transparent)]
18 | struct MultiFieldStruct<T>(T, T);
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ needs at most one non-trivial field, but has 2

error[E0690]: transparent struct needs at most one non-trivial field, but has 2
  --> tests/ui_fail/multiple_fields_transparent.rs:16:10
   |
16 | #[derive(ReprC)]
   |          ^^^^^
   |          |
   |          needs at most one non-trivial field, but has 2
   |          this field is generic and hence may have non-zero size
17 | #[repr(transparent)]
18 | struct MultiFieldStruct<T>(T, T);
   |                            - this field is generic and hence may have non-zero size
   |
   = note: this error originates in the derive macro `ReprC` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0690]: transparent struct needs at most one non-trivial field, but has 2
  --> tests/ui_fail/multiple_fields_transparent.rs:16:10
   |
16 | #[derive(ReprC)]
   |          ^^^^^
   |          |
   |          needs at most one non-trivial field, but has 2
   |          this field is generic and hence may have non-zero size
   |          this field is generic and hence may have non-zero size
   |
   = note: this error originates in the derive macro `co3::ReprC` (in Nightly builds, run with -Z macro-backtrace for more info)