blob: 8b6e43601608daa3852e448925776acabddf6fc6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
mod m1 {
pub struct Pub;
struct Priv;
impl Pub {
pub fn f() -> Priv {Priv} //~ ERROR private type `m1::Priv` in public interface
}
}
mod m2 {
pub struct Pub;
struct Priv;
impl Pub {
pub fn f() -> Priv {Priv} //~ ERROR private type `m2::Priv` in public interface
}
}
fn main() {}
|