Advertisement
cwchen

[Rust] Basic calculations.

Aug 22nd, 2017
519
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Rust 0.12 KB | None | 0 0
  1. fn main() {
  2.     assert_eq!(2 + 1, 3);
  3.     assert_eq!(5 - 1, 4);
  4.     assert_eq!(2 * 3, 6);
  5.     assert_eq!(6 / 3, 2);
  6. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement