2018-08-08 14:28:26 +02:00
|
|
|
error[E0603]: module `baz` is private
|
2018-12-25 08:56:47 -07:00
|
|
|
--> $DIR/privacy1.rs:132:18
|
2018-08-08 14:28:26 +02:00
|
|
|
|
|
|
|
|
LL | use bar::baz::{foo, bar};
|
2020-03-22 15:36:54 -07:00
|
|
|
| ^^^ private module
|
2020-01-12 16:04:03 +03:00
|
|
|
|
|
|
|
|
note: the module `baz` is defined here
|
|
|
|
--> $DIR/privacy1.rs:50:5
|
|
|
|
|
|
|
|
|
LL | mod baz {
|
|
|
|
| ^^^^^^^
|
2018-08-08 14:28:26 +02:00
|
|
|
|
|
|
|
error[E0603]: module `baz` is private
|
2020-01-08 20:02:10 +03:00
|
|
|
--> $DIR/privacy1.rs:132:18
|
|
|
|
|
|
|
|
|
LL | use bar::baz::{foo, bar};
|
2020-03-22 15:36:54 -07:00
|
|
|
| ^^^ private module
|
2020-01-12 16:04:03 +03:00
|
|
|
|
|
|
|
|
note: the module `baz` is defined here
|
|
|
|
--> $DIR/privacy1.rs:50:5
|
|
|
|
|
|
|
|
|
LL | mod baz {
|
|
|
|
| ^^^^^^^
|
2020-01-08 20:02:10 +03:00
|
|
|
|
|
|
|
error[E0603]: module `baz` is private
|
|
|
|
--> $DIR/privacy1.rs:141:18
|
2018-08-08 14:28:26 +02:00
|
|
|
|
|
|
|
|
LL | use bar::baz;
|
2020-03-22 15:36:54 -07:00
|
|
|
| ^^^ private module
|
2020-01-12 16:04:03 +03:00
|
|
|
|
|
|
|
|
note: the module `baz` is defined here
|
|
|
|
--> $DIR/privacy1.rs:50:5
|
|
|
|
|
|
|
|
|
LL | mod baz {
|
|
|
|
| ^^^^^^^
|
2018-08-08 14:28:26 +02:00
|
|
|
|
|
|
|
error[E0603]: module `i` is private
|
2020-01-08 20:02:10 +03:00
|
|
|
--> $DIR/privacy1.rs:165:20
|
2018-08-08 14:28:26 +02:00
|
|
|
|
|
2019-03-09 15:03:44 +03:00
|
|
|
LL | use self::foo::i::A;
|
2020-03-22 15:36:54 -07:00
|
|
|
| ^ private module
|
2020-01-12 16:04:03 +03:00
|
|
|
|
|
|
|
|
note: the module `i` is defined here
|
|
|
|
--> $DIR/privacy1.rs:170:9
|
|
|
|
|
|
|
|
|
LL | mod i {
|
|
|
|
| ^^^^^
|
2018-08-08 14:28:26 +02:00
|
|
|
|
|
|
|
error[E0603]: module `baz` is private
|
2018-12-25 08:56:47 -07:00
|
|
|
--> $DIR/privacy1.rs:104:16
|
2018-08-08 14:28:26 +02:00
|
|
|
|
|
2019-03-09 15:03:44 +03:00
|
|
|
LL | ::bar::baz::A::foo();
|
2023-06-16 19:44:06 +00:00
|
|
|
| ^^^ - struct `A` is not publicly re-exported
|
|
|
|
| |
|
|
|
|
| private module
|
2020-01-12 16:04:03 +03:00
|
|
|
|
|
|
|
|
note: the module `baz` is defined here
|
|
|
|
--> $DIR/privacy1.rs:50:5
|
|
|
|
|
|
|
|
|
LL | mod baz {
|
|
|
|
| ^^^^^^^
|
2018-08-08 14:28:26 +02:00
|
|
|
|
|
|
|
error[E0603]: module `baz` is private
|
2018-12-25 08:56:47 -07:00
|
|
|
--> $DIR/privacy1.rs:105:16
|
2018-08-08 14:28:26 +02:00
|
|
|
|
|
2019-03-09 15:03:44 +03:00
|
|
|
LL | ::bar::baz::A::bar();
|
2023-06-16 19:44:06 +00:00
|
|
|
| ^^^ - struct `A` is not publicly re-exported
|
|
|
|
| |
|
|
|
|
| private module
|
2020-01-12 16:04:03 +03:00
|
|
|
|
|
|
|
|
note: the module `baz` is defined here
|
|
|
|
--> $DIR/privacy1.rs:50:5
|
|
|
|
|
|
|
|
|
LL | mod baz {
|
|
|
|
| ^^^^^^^
|
2018-08-08 14:28:26 +02:00
|
|
|
|
|
|
|
error[E0603]: module `baz` is private
|
2018-12-25 08:56:47 -07:00
|
|
|
--> $DIR/privacy1.rs:107:16
|
2018-08-08 14:28:26 +02:00
|
|
|
|
|
2019-03-09 15:03:44 +03:00
|
|
|
LL | ::bar::baz::A.foo2();
|
2023-06-16 19:44:06 +00:00
|
|
|
| ^^^ - unit struct `A` is not publicly re-exported
|
|
|
|
| |
|
|
|
|
| private module
|
2020-01-12 16:04:03 +03:00
|
|
|
|
|
|
|
|
note: the module `baz` is defined here
|
|
|
|
--> $DIR/privacy1.rs:50:5
|
|
|
|
|
|
|
|
|
LL | mod baz {
|
|
|
|
| ^^^^^^^
|
2018-08-08 14:28:26 +02:00
|
|
|
|
|
|
|
error[E0603]: module `baz` is private
|
2018-12-25 08:56:47 -07:00
|
|
|
--> $DIR/privacy1.rs:108:16
|
2018-08-08 14:28:26 +02:00
|
|
|
|
|
2019-03-09 15:03:44 +03:00
|
|
|
LL | ::bar::baz::A.bar2();
|
2023-06-16 19:44:06 +00:00
|
|
|
| ^^^ - unit struct `A` is not publicly re-exported
|
|
|
|
| |
|
|
|
|
| private module
|
2020-01-12 16:04:03 +03:00
|
|
|
|
|
|
|
|
note: the module `baz` is defined here
|
|
|
|
--> $DIR/privacy1.rs:50:5
|
|
|
|
|
|
|
|
|
LL | mod baz {
|
|
|
|
| ^^^^^^^
|
2018-08-08 14:28:26 +02:00
|
|
|
|
|
|
|
error[E0603]: trait `B` is private
|
2018-12-25 08:56:47 -07:00
|
|
|
--> $DIR/privacy1.rs:112:16
|
2018-08-08 14:28:26 +02:00
|
|
|
|
|
2019-03-09 15:03:44 +03:00
|
|
|
LL | ::bar::B::foo();
|
2023-06-16 19:44:06 +00:00
|
|
|
| ^ --- associated function `foo` is not publicly re-exported
|
|
|
|
| |
|
|
|
|
| private trait
|
2020-01-12 16:04:03 +03:00
|
|
|
|
|
|
|
|
note: the trait `B` is defined here
|
|
|
|
--> $DIR/privacy1.rs:40:5
|
|
|
|
|
|
|
|
|
LL | trait B {
|
|
|
|
| ^^^^^^^
|
2018-08-08 14:28:26 +02:00
|
|
|
|
|
|
|
error[E0603]: function `epriv` is private
|
2018-12-25 08:56:47 -07:00
|
|
|
--> $DIR/privacy1.rs:118:20
|
2018-08-08 14:28:26 +02:00
|
|
|
|
|
2019-03-09 15:03:44 +03:00
|
|
|
LL | ::bar::epriv();
|
2020-03-22 15:36:54 -07:00
|
|
|
| ^^^^^ private function
|
2020-01-12 16:04:03 +03:00
|
|
|
|
|
|
|
|
note: the function `epriv` is defined here
|
|
|
|
--> $DIR/privacy1.rs:65:9
|
|
|
|
|
|
|
|
|
LL | fn epriv();
|
|
|
|
| ^^^^^^^^^^^
|
2018-08-08 14:28:26 +02:00
|
|
|
|
|
|
|
error[E0603]: module `baz` is private
|
2018-12-25 08:56:47 -07:00
|
|
|
--> $DIR/privacy1.rs:127:16
|
2018-08-08 14:28:26 +02:00
|
|
|
|
|
2019-03-09 15:03:44 +03:00
|
|
|
LL | ::bar::baz::foo();
|
2020-03-22 15:36:54 -07:00
|
|
|
| ^^^ private module
|
2020-01-12 16:04:03 +03:00
|
|
|
|
|
|
|
|
note: the module `baz` is defined here
|
|
|
|
--> $DIR/privacy1.rs:50:5
|
|
|
|
|
|
|
|
|
LL | mod baz {
|
|
|
|
| ^^^^^^^
|
2023-06-16 19:44:06 +00:00
|
|
|
help: consider importing this function through its public re-export instead
|
|
|
|
|
|
|
|
|
LL | bar::foo();
|
|
|
|
| ~~~~~~~~
|
2018-08-08 14:28:26 +02:00
|
|
|
|
|
|
|
error[E0603]: module `baz` is private
|
2018-12-25 08:56:47 -07:00
|
|
|
--> $DIR/privacy1.rs:128:16
|
2018-08-08 14:28:26 +02:00
|
|
|
|
|
2019-03-09 15:03:44 +03:00
|
|
|
LL | ::bar::baz::bar();
|
2020-03-22 15:36:54 -07:00
|
|
|
| ^^^ private module
|
2020-01-12 16:04:03 +03:00
|
|
|
|
|
|
|
|
note: the module `baz` is defined here
|
|
|
|
--> $DIR/privacy1.rs:50:5
|
|
|
|
|
|
|
|
|
LL | mod baz {
|
|
|
|
| ^^^^^^^
|
2023-06-16 19:44:06 +00:00
|
|
|
help: consider importing this function through its public re-export instead
|
|
|
|
|
|
|
|
|
LL | bar::bar();
|
|
|
|
| ~~~~~~~~
|
2018-08-08 14:28:26 +02:00
|
|
|
|
|
|
|
error[E0603]: trait `B` is private
|
2020-01-08 20:02:10 +03:00
|
|
|
--> $DIR/privacy1.rs:157:17
|
2018-08-08 14:28:26 +02:00
|
|
|
|
|
|
|
|
LL | impl ::bar::B for f32 { fn foo() -> f32 { 1.0 } }
|
2020-03-22 15:36:54 -07:00
|
|
|
| ^ private trait
|
2020-01-12 16:04:03 +03:00
|
|
|
|
|
|
|
|
note: the trait `B` is defined here
|
|
|
|
--> $DIR/privacy1.rs:40:5
|
|
|
|
|
|
|
|
|
LL | trait B {
|
|
|
|
| ^^^^^^^
|
2018-08-08 14:28:26 +02:00
|
|
|
|
2020-03-04 21:03:15 -06:00
|
|
|
error[E0624]: associated function `bar` is private
|
2020-03-22 16:09:42 -07:00
|
|
|
--> $DIR/privacy1.rs:77:23
|
2018-08-08 14:28:26 +02:00
|
|
|
|
|
2021-07-17 11:13:50 -07:00
|
|
|
LL | fn bar() {}
|
|
|
|
| -------- private associated function defined here
|
|
|
|
...
|
2019-03-09 15:03:44 +03:00
|
|
|
LL | self::baz::A::bar();
|
2020-03-22 16:09:42 -07:00
|
|
|
| ^^^ private associated function
|
2018-08-08 14:28:26 +02:00
|
|
|
|
2020-03-04 21:03:15 -06:00
|
|
|
error[E0624]: associated function `bar` is private
|
2020-03-22 16:09:42 -07:00
|
|
|
--> $DIR/privacy1.rs:95:13
|
2018-08-08 14:28:26 +02:00
|
|
|
|
|
2021-07-17 11:13:50 -07:00
|
|
|
LL | fn bar() {}
|
|
|
|
| -------- private associated function defined here
|
|
|
|
...
|
2019-03-09 15:03:44 +03:00
|
|
|
LL | bar::A::bar();
|
2020-03-22 16:09:42 -07:00
|
|
|
| ^^^ private associated function
|
2018-08-08 14:28:26 +02:00
|
|
|
|
2020-03-04 21:03:15 -06:00
|
|
|
error[E0624]: associated function `bar` is private
|
2020-03-22 16:09:42 -07:00
|
|
|
--> $DIR/privacy1.rs:102:19
|
2018-08-08 14:28:26 +02:00
|
|
|
|
|
2021-07-17 11:13:50 -07:00
|
|
|
LL | fn bar() {}
|
|
|
|
| -------- private associated function defined here
|
|
|
|
...
|
2019-03-09 15:03:44 +03:00
|
|
|
LL | ::bar::A::bar();
|
2020-03-22 16:09:42 -07:00
|
|
|
| ^^^ private associated function
|
2018-08-08 14:28:26 +02:00
|
|
|
|
2020-03-04 21:03:15 -06:00
|
|
|
error[E0624]: associated function `bar` is private
|
2020-03-22 16:09:42 -07:00
|
|
|
--> $DIR/privacy1.rs:105:24
|
2018-08-08 14:28:26 +02:00
|
|
|
|
|
2021-07-17 11:13:50 -07:00
|
|
|
LL | fn bar() {}
|
|
|
|
| -------- private associated function defined here
|
|
|
|
...
|
2019-03-09 15:03:44 +03:00
|
|
|
LL | ::bar::baz::A::bar();
|
2020-03-22 16:09:42 -07:00
|
|
|
| ^^^ private associated function
|
2018-08-08 14:28:26 +02:00
|
|
|
|
2023-02-21 14:11:08 -07:00
|
|
|
error[E0624]: method `bar2` is private
|
2018-12-25 08:56:47 -07:00
|
|
|
--> $DIR/privacy1.rs:108:23
|
2018-08-08 14:28:26 +02:00
|
|
|
|
|
2021-07-17 11:13:50 -07:00
|
|
|
LL | fn bar2(&self) {}
|
2023-02-21 14:11:08 -07:00
|
|
|
| -------------- private method defined here
|
2021-07-17 11:13:50 -07:00
|
|
|
...
|
2019-03-09 15:03:44 +03:00
|
|
|
LL | ::bar::baz::A.bar2();
|
2023-02-21 14:11:08 -07:00
|
|
|
| ^^^^ private method
|
2018-08-08 14:28:26 +02:00
|
|
|
|
2020-01-08 20:02:10 +03:00
|
|
|
error: aborting due to 18 previous errors
|
2018-08-08 14:28:26 +02:00
|
|
|
|
2019-04-17 13:26:38 -04:00
|
|
|
Some errors have detailed explanations: E0603, E0624.
|
2018-08-08 14:28:26 +02:00
|
|
|
For more information about an error, try `rustc --explain E0603`.
|