SHARE
TWEET

Untitled

a guest Feb 23rd, 2019 68 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. extern crate serde; // 1.0.85
  2. extern crate serde_json;
  3.  
  4. use serde::Serialize;
  5.  
  6. fn test(_: impl Serialize) {  }
  7.  
  8. struct A {}
  9.  
  10. fn main() {
  11.     test(25u32);
  12. }
  13.  
  14. fn res<A: std::fmt::Display, B: std::error::Error>() -> Result<A, B> {
  15.     unimplemented!()
  16. }
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