Skip to content

Support structs that have a private inner type #3

Closed
@dtolnay

Description

@dtolnay

This currently runs afoul of private-in-public rules.

#[macro_use]
extern crate ref_cast;

struct T;

#[derive(RefCast)]
pub struct U(T);
error[E0446]: private type `T` in public interface
 --> src/main.rs:6:10
  |
6 | #[derive(RefCast)]
  |          ^^^^^^^ can't leak private type

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions