]> git.lizzy.rs Git - rust.git/blob - tests/ui/resolve/issue-42944.rs
Rollup merge of #106692 - eggyal:mv-binary_heap.rs-binary_heap/mod.rs, r=Mark-Simulacrum
[rust.git] / tests / ui / resolve / issue-42944.rs
1 mod foo {
2     pub struct Bx(pub(in crate::foo) ());
3 }
4
5 mod bar {
6     use foo::Bx;
7
8     fn foo() {
9         Bx(());
10         //~^ ERROR cannot initialize a tuple struct which contains private fields [E0423]
11     }
12 }
13
14 mod baz {
15     fn foo() {
16         Bx(());
17         //~^ ERROR cannot find function, tuple struct or tuple variant `Bx` in this scope [E0425]
18     }
19 }
20
21 fn main() {}