Guest User

Untitled

a guest
Dec 12th, 2018
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.14 KB | None | 0 0
  1. use std::fmt::Debug;
  2.  
  3. fn foo(d: impl Debug) {
  4. bar(d);
  5. }
  6.  
  7. fn bar(d: impl Debug + 'static) {
  8. println!("{:?}", d)
  9. }
  10.  
  11. fn main() {
  12. foo("hi");
  13. }
Add Comment
Please, Sign In to add comment