daily pastebin goal
23%
SHARE
TWEET

Untitled

a guest Dec 16th, 2018 61 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. use num_traits::Float;
  2.  
  3. fn f<T: Float>(_: Option<T>) {}
  4.  
  5. fn main() {
  6.     let _ = f(Some(45.0));
  7.     let _ = f(None);
  8. }
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