blob: 05372dbe5eb353cbf842eeb6a71fe7a247f9099c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
mod front_of_house {
pub mod hosting {
fn add_to_waitlist() {}
}
}
pub fn eat_at_restaurant() {
// Absolute path
crate::front_of_house::hosting::add_to_waitlist();
// Relative path
front_of_house::hosting::add_to_waitlist();
}
|