2018-12-16 07:18:45 -06:00
|
|
|
// Patterns and expressions are not interface parts and don't produce private-in-public errors.
|
|
|
|
|
2019-07-02 16:30:28 -05:00
|
|
|
// build-pass (FIXME(62277): could be check-pass?)
|
2018-12-16 07:18:45 -06:00
|
|
|
|
|
|
|
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() {}
|