blob: 4c5926a91ea4e50320d201604299f53334a55f5c [file] [log] [blame]
// Regression test for https://github.com/rust-lang/rust/issues/145367
mod m {
struct Priv2;
}
fn main() {
WithUse { one: m::Priv2 } //~ ERROR: cannot find struct, variant or union type `WithUse` in this scope
//~^ ERROR: unit struct `Priv2` is private
}