1 extern crate a; 2 3 use a::foo; 4 main()5 fn main() { 6 let x = String::from("Hello"); 7 println!("{}", foo(x)); 8 } 9