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