Import from within module folder

I've setup my folder like this:

src/foo/ has "pub mod foo"
foo/ has "pub mod bar" and "pub mod baz"

However - when I try to use something from baz from within bar I get an error. I tried use ::baz, mod baz, etc. but couldn't get it to work.

How can I use the things defined in baz, from within bar?

// in mod bar
use super::baz;
1 Like

Or of course, use crate::foo::baz, which works anywhere.