fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #71868 - Mark-Simulacrum:stable-1.43.1, r=pietroalbini8d69840ab92

1.43.1
666 B21 linesraw
1error[E0423]: expected function, tuple struct or tuple variant, found struct `B`
2  --> $DIR/issue-42944.rs:9:9
3   |
4LL |         B(());
5   |         ^ constructor is not visible here due to private fields
6
7error[E0425]: cannot find function, tuple struct or tuple variant `B` in this scope
8  --> $DIR/issue-42944.rs:16:9
9   |
10LL |         B(());
11   |         ^ not found in this scope
12   |
13help: possible candidate is found in another module, you can import it into scope
14   |
15LL |     use foo::B;
16   |
17
18error: aborting due to 2 previous errors
19
20Some errors have detailed explanations: E0423, E0425.
21For more information about an error, try `rustc --explain E0423`.