daily pastebin goal
24%
SHARE
TWEET

[Rust] Calling a function from a nested module

cwchen Aug 23rd, 2017 150 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // Call external library
  2. extern crate phrase;
  3.  
  4. fn main() {
  5.     assert_eq!("Hello, Michael", phrase::english::greeting::hello("Michael"));
  6.     assert_eq!("你好,麥可", phrase::chinese::greeting::hello("麥可"));
  7. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top