]> git.lizzy.rs Git - rust.git/blob - src/test/ui/resolve/issue-42944.stderr
Rollup merge of #101142 - nnethercote:improve-hir-stats, r=davidtwco
[rust.git] / src / test / ui / resolve / issue-42944.stderr
1 error[E0423]: cannot initialize a tuple struct which contains private fields
2   --> $DIR/issue-42944.rs:9:9
3    |
4 LL |         Bx(());
5    |         ^^
6    |
7 note: constructor is not visible here due to private fields
8   --> $DIR/issue-42944.rs:2:19
9    |
10 LL |     pub struct Bx(());
11    |                   ^^ private field
12
13 error[E0425]: cannot find function, tuple struct or tuple variant `Bx` in this scope
14   --> $DIR/issue-42944.rs:16:9
15    |
16 LL |         Bx(());
17    |         ^^ not found in this scope
18    |
19 note: tuple struct `foo::Bx` exists but is inaccessible
20   --> $DIR/issue-42944.rs:2:5
21    |
22 LL |     pub struct Bx(());
23    |     ^^^^^^^^^^^^^^^^^^ not accessible
24
25 error: aborting due to 2 previous errors
26
27 Some errors have detailed explanations: E0423, E0425.
28 For more information about an error, try `rustc --explain E0423`.