]> git.lizzy.rs Git - rust.git/blob - tests/ui/resolve/issue-42944.stderr
Merge commit '7f27e2e74ef957baa382dc05cf08df6368165c74' into clippyup
[rust.git] / tests / ui / resolve / issue-42944.stderr
1 error[E0425]: cannot find function, tuple struct or tuple variant `Bx` in this scope
2   --> $DIR/issue-42944.rs:16:9
3    |
4 LL |         Bx(());
5    |         ^^ not found in this scope
6    |
7 note: tuple struct `foo::Bx` exists but is inaccessible
8   --> $DIR/issue-42944.rs:2:5
9    |
10 LL |     pub struct Bx(());
11    |     ^^^^^^^^^^^^^^^^^^ not accessible
12
13 error[E0423]: cannot initialize a tuple struct which contains private fields
14   --> $DIR/issue-42944.rs:9:9
15    |
16 LL |         Bx(());
17    |         ^^
18    |
19 note: constructor is not visible here due to private fields
20   --> $DIR/issue-42944.rs:2:19
21    |
22 LL |     pub struct Bx(());
23    |                   ^^ private field
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`.