rust/src/test/ui/privacy/privacy1.stderr

107 lines
2.9 KiB
Plaintext
Raw Normal View History

2018-08-08 07:28:26 -05:00
error[E0603]: module `baz` is private
2018-12-25 09:56:47 -06:00
--> $DIR/privacy1.rs:132:18
2018-08-08 07:28:26 -05:00
|
LL | use bar::baz::{foo, bar};
| ^^^
2018-08-08 07:28:26 -05:00
error[E0603]: module `baz` is private
2018-12-25 09:56:47 -06:00
--> $DIR/privacy1.rs:140:18
2018-08-08 07:28:26 -05:00
|
LL | use bar::baz;
| ^^^
2018-08-08 07:28:26 -05:00
error[E0603]: module `i` is private
2018-12-25 09:56:47 -06:00
--> $DIR/privacy1.rs:164:20
2018-08-08 07:28:26 -05:00
|
LL | use self::foo::i::A; //~ ERROR: module `i` is private
| ^
2018-08-08 07:28:26 -05:00
error[E0603]: module `baz` is private
2018-12-25 09:56:47 -06:00
--> $DIR/privacy1.rs:104:16
2018-08-08 07:28:26 -05:00
|
LL | ::bar::baz::A::foo(); //~ ERROR: module `baz` is private
| ^^^
2018-08-08 07:28:26 -05:00
error[E0603]: module `baz` is private
2018-12-25 09:56:47 -06:00
--> $DIR/privacy1.rs:105:16
2018-08-08 07:28:26 -05:00
|
LL | ::bar::baz::A::bar(); //~ ERROR: module `baz` is private
| ^^^
2018-08-08 07:28:26 -05:00
error[E0603]: module `baz` is private
2018-12-25 09:56:47 -06:00
--> $DIR/privacy1.rs:107:16
2018-08-08 07:28:26 -05:00
|
LL | ::bar::baz::A.foo2(); //~ ERROR: module `baz` is private
| ^^^
2018-08-08 07:28:26 -05:00
error[E0603]: module `baz` is private
2018-12-25 09:56:47 -06:00
--> $DIR/privacy1.rs:108:16
2018-08-08 07:28:26 -05:00
|
LL | ::bar::baz::A.bar2(); //~ ERROR: module `baz` is private
| ^^^
2018-08-08 07:28:26 -05:00
error[E0603]: trait `B` is private
2018-12-25 09:56:47 -06:00
--> $DIR/privacy1.rs:112:16
2018-08-08 07:28:26 -05:00
|
LL | ::bar::B::foo(); //~ ERROR: trait `B` is private
| ^
2018-08-08 07:28:26 -05:00
error[E0603]: function `epriv` is private
2018-12-25 09:56:47 -06:00
--> $DIR/privacy1.rs:118:20
2018-08-08 07:28:26 -05:00
|
LL | ::bar::epriv(); //~ ERROR: function `epriv` is private
| ^^^^^
2018-08-08 07:28:26 -05:00
error[E0603]: module `baz` is private
2018-12-25 09:56:47 -06:00
--> $DIR/privacy1.rs:127:16
2018-08-08 07:28:26 -05:00
|
LL | ::bar::baz::foo(); //~ ERROR: module `baz` is private
| ^^^
2018-08-08 07:28:26 -05:00
error[E0603]: module `baz` is private
2018-12-25 09:56:47 -06:00
--> $DIR/privacy1.rs:128:16
2018-08-08 07:28:26 -05:00
|
LL | ::bar::baz::bar(); //~ ERROR: module `baz` is private
| ^^^
2018-08-08 07:28:26 -05:00
error[E0603]: trait `B` is private
2018-12-25 09:56:47 -06:00
--> $DIR/privacy1.rs:156:17
2018-08-08 07:28:26 -05:00
|
LL | impl ::bar::B for f32 { fn foo() -> f32 { 1.0 } }
| ^
2018-08-08 07:28:26 -05:00
error[E0624]: method `bar` is private
2018-12-25 09:56:47 -06:00
--> $DIR/privacy1.rs:77:9
2018-08-08 07:28:26 -05:00
|
LL | self::baz::A::bar(); //~ ERROR: method `bar` is private
| ^^^^^^^^^^^^^^^^^
error[E0624]: method `bar` is private
2018-12-25 09:56:47 -06:00
--> $DIR/privacy1.rs:95:5
2018-08-08 07:28:26 -05:00
|
LL | bar::A::bar(); //~ ERROR: method `bar` is private
| ^^^^^^^^^^^
error[E0624]: method `bar` is private
2018-12-25 09:56:47 -06:00
--> $DIR/privacy1.rs:102:9
2018-08-08 07:28:26 -05:00
|
LL | ::bar::A::bar(); //~ ERROR: method `bar` is private
| ^^^^^^^^^^^^^
error[E0624]: method `bar` is private
2018-12-25 09:56:47 -06:00
--> $DIR/privacy1.rs:105:9
2018-08-08 07:28:26 -05:00
|
LL | ::bar::baz::A::bar(); //~ ERROR: module `baz` is private
| ^^^^^^^^^^^^^^^^^^
error[E0624]: method `bar2` is private
2018-12-25 09:56:47 -06:00
--> $DIR/privacy1.rs:108:23
2018-08-08 07:28:26 -05:00
|
LL | ::bar::baz::A.bar2(); //~ ERROR: module `baz` is private
| ^^^^
error: aborting due to 17 previous errors
2018-08-08 07:28:26 -05:00
Some errors occurred: E0603, E0624.
For more information about an error, try `rustc --explain E0603`.