fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0433]: failed to resolve: maybe a missing crate `bad`? 2 --> $DIR/test.rs:50:12 3 | 4LL | pub(in bad::path) mod m1 {} 5 | ^^^ maybe a missing crate `bad`? 6 | 7 = help: consider adding `extern crate bad` to use the `bad` crate 8 9error[E0742]: visibilities can only be restricted to ancestor modules 10 --> $DIR/test.rs:51:12 11 | 12LL | pub(in foo) mod m2 {} 13 | ^^^ 14 15error[E0364]: `f` is private, and cannot be re-exported 16 --> $DIR/test.rs:21:24 17 | 18LL | pub(super) use foo::bar::f as g; 19 | ^^^^^^^^^^^^^^^^ 20 | 21note: consider marking `f` as `pub` in the imported module 22 --> $DIR/test.rs:21:24 23 | 24LL | pub(super) use foo::bar::f as g; 25 | ^^^^^^^^^^^^^^^^ 26 27error[E0603]: struct `Crate` is private 28 --> $DIR/test.rs:38:25 29 | 30LL | use pub_restricted::Crate; 31 | ^^^^^ private struct 32 | 33note: the struct `Crate` is defined here 34 --> $DIR/auxiliary/pub_restricted.rs:1:1 35 | 36LL | pub(crate) struct Crate; 37 | ^^^^^^^^^^^^^^^^^^^^^^^ 38 39error[E0603]: function `f` is private 40 --> $DIR/test.rs:30:19 41 | 42LL | use foo::bar::f; 43 | ^ private function 44 | 45note: the function `f` is defined here 46 --> $DIR/test.rs:8:9 47 | 48LL | pub(super) fn f() {} 49 | ^^^^^^^^^^^^^^^^^ 50 51error[E0616]: field `x` of struct `S` is private 52 --> $DIR/test.rs:31:18 53 | 54LL | S::default().x; 55 | ^ private field 56 57error[E0624]: method `f` is private 58 --> $DIR/test.rs:32:18 59 | 60LL | pub(super) fn f(&self) {} 61 | ---------------------- private method defined here 62... 63LL | S::default().f(); 64 | ^ private method 65 66error[E0624]: associated function `g` is private 67 --> $DIR/test.rs:33:8 68 | 69LL | pub(super) fn g() {} 70 | ----------------- private associated function defined here 71... 72LL | S::g(); 73 | ^ private associated function 74 75error[E0616]: field `y` of struct `Universe` is private 76 --> $DIR/test.rs:42:15 77 | 78LL | let _ = u.y; 79 | ^ private field 80 81error[E0616]: field `z` of struct `Universe` is private 82 --> $DIR/test.rs:43:15 83 | 84LL | let _ = u.z; 85 | ^ private field 86 87error[E0624]: method `g` is private 88 --> $DIR/test.rs:45:7 89 | 90LL | u.g(); 91 | ^ private method 92 | 93 ::: $DIR/auxiliary/pub_restricted.rs:12:5 94 | 95LL | pub(crate) fn g(&self) {} 96 | ---------------------- private method defined here 97 98error[E0624]: method `h` is private 99 --> $DIR/test.rs:46:7 100 | 101LL | u.h(); 102 | ^ private method 103 | 104 ::: $DIR/auxiliary/pub_restricted.rs:13:5 105 | 106LL | pub(crate) fn h(&self) {} 107 | ---------------------- private method defined here 108 109error: aborting due to 12 previous errors 110 111Some errors have detailed explanations: E0364, E0433, E0603, E0616, E0624, E0742. 112For more information about an error, try `rustc --explain E0364`.