Guest User

Untitled

a guest
Jun 19th, 2018
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.18 KB | None | 0 0
  1. use std::ffi::{OsStr, OsString};
  2. use std::path::PathBuf;
  3.  
  4. fn f(_: &AsRef<OsStr>) { }
  5.  
  6. fn main() {
  7. f(&OsString::from("a"));
  8. f(&PathBuf::from("b"));
  9. f("c");
  10. f(&"d");
  11. }
Add Comment
Please, Sign In to add comment