xref: /aosp_15_r20/external/bazelbuild-rules_rust/test/renamed_deps/mod1.rs (revision d4726bddaa87cc4778e7472feed243fa4b6c267f)

world() -> String1*d4726bddSHONG Yifan pub fn world() -> String {
2*d4726bddSHONG Yifan     "world".to_owned()
3*d4726bddSHONG Yifan }
4*d4726bddSHONG Yifan 
5*d4726bddSHONG Yifan #[cfg(test)]
6*d4726bddSHONG Yifan mod test {
7*d4726bddSHONG Yifan     #[test]
test_world()8*d4726bddSHONG Yifan     fn test_world() {
9*d4726bddSHONG Yifan         assert_eq!(super::world(), "world");
10*d4726bddSHONG Yifan     }
11*d4726bddSHONG Yifan }
12