1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
pub mod other { #[derive(Debug)] pub struct BarType { pub b: i32, pub c: String, } } pub mod tns { pub type Foo = FooType; #[derive(Debug)] pub struct FooType { pub a: f32, pub b: super::other::BarType, } }