]> git.lizzy.rs Git - rust.git/blob - tests/ui/privacy/issue-17718-const-privacy.stderr
Rollup merge of #107015 - cuviper:ra-riscv64, r=Mark-Simulacrum
[rust.git] / tests / ui / privacy / issue-17718-const-privacy.stderr
1 error[E0603]: constant `B` is private
2   --> $DIR/issue-17718-const-privacy.rs:5:8
3    |
4 LL | use a::B;
5    |        ^ private constant
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    |     ^^^^^^^^^^^^^^^^^^^
12
13 error[E0603]: constant `BAR` is private
14   --> $DIR/issue-17718-const-privacy.rs:8:5
15    |
16 LL |     BAR,
17    |     ^^^ private constant
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    | ^^^^^^^^^^^^^^^^
24
25 error: aborting due to 2 previous errors
26
27 For more information about this error, try `rustc --explain E0603`.