fork/rust

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

borsAuto merge of #72883 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum49cae55760d

1.44.0
689 B27 linesraw
1error[E0603]: constant `B` is private
2  --> $DIR/issue-17718-const-privacy.rs:5:8
3   |
4LL | use a::B;
5   |        ^ private constant
6   |
7note: the constant `B` is defined here
8  --> $DIR/issue-17718-const-privacy.rs:13:5
9   |
10LL |     const B: usize = 3;
11   |     ^^^^^^^^^^^^^^^^^^^
12
13error[E0603]: constant `BAR` is private
14  --> $DIR/issue-17718-const-privacy.rs:8:5
15   |
16LL |     BAR,
17   |     ^^^ private constant
18   |
19note: the constant `BAR` is defined here
20  --> $DIR/auxiliary/issue-17718-const-privacy.rs:4:1
21   |
22LL | const BAR: usize = 3;
23   | ^^^^^^^^^^^^^^^^^^^^^
24
25error: aborting due to 2 previous errors
26
27For more information about this error, try `rustc --explain E0603`.