rust/src/test/ui/issues/issue-10545.rs
2018-12-25 21:08:33 -07:00

10 lines
107 B
Rust

mod a {
struct S;
impl S { }
}
fn foo(_: a::S) { //~ ERROR: struct `S` is private
}
fn main() {}