about summary refs log tree commit diff
path: root/tests/ui/structs/default-field-values/non-exhaustive-ctor-not-found.rs
blob: 4c5926a91ea4e50320d201604299f53334a55f5c (plain)
1
2
3
4
5
6
7
8
// 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
}