Releases: dtolnay/ghost
Releases · dtolnay/ghost
Release list
0.1.22
0.1.21
error: zero-sized fields in `repr(transparent)` cannot contain `repr(C)` types
--> src/main.rs:7:24
|
7 | struct MyWrapper<T>(T, MyPhantom<T>);
| ^^^^^^^^^^^^
|
= note: this field contains `TypeParam<T>`, which is a `#[repr(C)]` type, so it is not guaranteed to be zero-sized on all targets.
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
= note: for more information, see issue #78586 <https://github.com/rust-lang/rust/issues/78586>
= note: `#[deny(repr_transparent_non_zst_fields)]` (part of `#[deny(future_incompatible)]`) on by default