mirror of
https://github.com/KaiserY/trpl-zh-cn
synced 2024-11-14 21:11:31 +08:00
33 lines
1.0 KiB
Plaintext
33 lines
1.0 KiB
Plaintext
$ cargo build
|
|
Compiling restaurant v0.1.0 (file:///projects/restaurant)
|
|
error[E0603]: module `hosting` is private
|
|
--> src/lib.rs:9:28
|
|
|
|
|
9 | crate::front_of_house::hosting::add_to_waitlist();
|
|
| ^^^^^^^ --------------- function `add_to_waitlist` is not publicly re-exported
|
|
| |
|
|
| private module
|
|
|
|
|
note: the module `hosting` is defined here
|
|
--> src/lib.rs:2:5
|
|
|
|
|
2 | mod hosting {
|
|
| ^^^^^^^^^^^
|
|
|
|
error[E0603]: module `hosting` is private
|
|
--> src/lib.rs:12:21
|
|
|
|
|
12 | front_of_house::hosting::add_to_waitlist();
|
|
| ^^^^^^^ --------------- function `add_to_waitlist` is not publicly re-exported
|
|
| |
|
|
| private module
|
|
|
|
|
note: the module `hosting` is defined here
|
|
--> src/lib.rs:2:5
|
|
|
|
|
2 | mod hosting {
|
|
| ^^^^^^^^^^^
|
|
|
|
For more information about this error, try `rustc --explain E0603`.
|
|
error: could not compile `restaurant` (lib) due to 2 previous errors
|