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