]> git.lizzy.rs Git - rust.git/blob - src/test/ui/resolve/issue-42944.rs
Auto merge of #97670 - spastorino:simplify-universal-impl-trait-lowering2, r=Dylan-DPC
[rust.git] / src / test / ui / resolve / issue-42944.rs
1 mod foo {
2     pub struct Bx(());
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() {}