rust/tests/ui/privacy/issue-17718-const-privacy.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

28 lines
684 B
Plaintext
Raw Normal View History

2018-08-08 14:28:26 +02:00
error[E0603]: constant `B` is private
2018-12-25 08:56:47 -07:00
--> $DIR/issue-17718-const-privacy.rs:5:8
2018-08-08 14:28:26 +02:00
|
2019-03-09 15:03:44 +03:00
LL | use a::B;
| ^ private constant
|
note: the constant `B` is defined here
--> $DIR/issue-17718-const-privacy.rs:13:5
|
LL | const B: usize = 3;
| ^^^^^^^^^^^^^^^^^^^
2018-08-08 14:28:26 +02:00
error[E0603]: constant `BAR` is private
2018-12-25 08:56:47 -07:00
--> $DIR/issue-17718-const-privacy.rs:8:5
2018-08-08 14:28:26 +02:00
|
2019-03-09 15:03:44 +03:00
LL | BAR,
| ^^^ private constant
|
note: the constant `BAR` is defined here
--> $DIR/auxiliary/issue-17718-const-privacy.rs:4:1
|
LL | const BAR: usize = 3;
2022-02-13 16:27:59 +01:00
| ^^^^^^^^^^^^^^^^
2018-08-08 14:28:26 +02:00
error: aborting due to 2 previous errors
For more information about this error, try `rustc --explain E0603`.