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
618 B27 linesraw
1error[E0603]: struct `Foo` is private
2  --> $DIR/issue-13641.rs:9:8
3   |
4LL |     a::Foo::new();
5   |        ^^^ this struct is private
6   |
7note: the struct `Foo` is defined here
8  --> $DIR/issue-13641.rs:2:5
9   |
10LL |     struct Foo;
11   |     ^^^^^^^^^^^
12
13error[E0603]: enum `Bar` is private
14  --> $DIR/issue-13641.rs:11:8
15   |
16LL |     a::Bar::new();
17   |        ^^^ this enum is private
18   |
19note: the enum `Bar` is defined here
20  --> $DIR/issue-13641.rs:4:5
21   |
22LL |     enum Bar {}
23   |     ^^^^^^^^
24
25error: aborting due to 2 previous errors
26
27For more information about this error, try `rustc --explain E0603`.