daily pastebin goal
57%
SHARE
TWEET

Untitled

a guest Jul 13th, 2018 69 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // fix paste
  2.  
  3. struct Point {
  4.     pub x: f32,
  5.     pub y: f32,
  6. }
  7.  
  8. struct Circle {
  9.     pub center: Point,
  10.     pub radius: f32,
  11. }
  12.  
  13. struct Uuid {
  14.     repr: u128,
  15. }
  16.  
  17. fn square(x: f64) -> f64 {
  18.     x * x
  19. }
  20.  
  21. fn gcd(a: u32, b: u32) -> u32 {
  22.     if b == 0 {
  23.         return a;
  24.     }
  25.     gcd(b, a % b)
  26. }
  27.  
  28.  
  29. fn main() {
  30.     // Prints four lines
  31.     for i in 0..4 {
  32.         println!("line {}", i);
  33.     }
  34. }
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