You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
error[E0446]: private type `Bar` in public interface
--> src/lib.rs:13:9
|
13 | type PointerMetadata = <Bar as KnownLayout>::PointerMetadata;
| ^^^^^^^^^^^^^^^^^^^^ can't leak private type
...
16 | struct Bar;
| ---------- `Bar` declared as private
This is probably a rustc bug.
The text was updated successfully, but these errors were encountered:
In some cases,
#[derive(KnownLayout)]
generates code like this:This causes a private-in-public error:
This is probably a rustc bug.
The text was updated successfully, but these errors were encountered: