Spot the bug in the module path

from Modules and crates
Rust 1.98 intermediate 4 min 1 issue to find

Find why main cannot construct the public Product type through this path.

Rust
mod store {
    mod catalog {
        pub struct Product;
    }
}

fn main() {
    let _item = store::catalog::Product;
}
Open in playground
Report an error