rust/tests/ui/issues/issue-10545.rs
2023-01-11 09:32:08 +00:00

10 lines
107 B
Rust

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