blob: a3e53bdf45de3f6a95540c1b625de4af2ce49bda (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
// Patterns and expressions are not interface parts and don't produce private-in-public errors.
// compile-pass
struct Priv1(usize);
struct Priv2;
pub struct Pub(Priv2);
pub fn public_expr(_: [u8; Priv1(0).0]) {} // OK
pub fn public_pat(Pub(Priv2): Pub) {} // OK
fn main() {}
|