]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-42944.stderr
Merge commit '6ed6f1e6a1a8f414ba7e6d9b8222e7e5a1686e42' into clippyup
[rust.git] / src / test / ui / issues / 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 help: consider importing this tuple struct
20    |
21 LL |     use foo::Bx;
22    |
23
24 error: aborting due to 2 previous errors
25
26 Some errors have detailed explanations: E0423, E0425.
27 For more information about an error, try `rustc --explain E0423`.