document.write('
Data hosted with ♥ by Pastebin.com - Download Raw - See Original
  1. mod english {
  2.     pub fn hello(name: &str) {
  3.         println!("Hello, {}", name);
  4.     }
  5. }
  6.  
  7. mod chinese {
  8.     pub fn hello(name: &str) {
  9.         println!("你好,{}", name);
  10.     }
  11. }
  12.  
  13. fn main() {
  14.     // Call modules
  15.     use english;
  16.     use chinese;
  17.  
  18.     // Call two functions with the same name
  19.     english::hello("Michael");
  20.     chinese::hello("麥可");
  21. }
');