Advertisement
Guest User

Untitled

a guest
Oct 20th, 2019
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.13 KB | None | 0 0
  1. fn foo(x: bool) -> impl core::fmt::Debug {
  2. if x {
  3. 42i32
  4. } else {
  5. 42u32
  6. }
  7. }
  8.  
  9. fn main() {
  10. dbg!(foo(true));
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement