Guest User

Untitled

a guest
May 24th, 2018
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.85 KB | None | 0 0
  1. fn main() {
  2. println!("{:?}", {
  3. main() // Dodo
  4. });
  5. }
  6.  
  7.  
  8. /* ~~~~=== stderr ===~~~~
  9. Compiling playground v0.0.1 (file:///playground)
  10. warning: function cannot return without recurring
  11. --> src/main.rs:3:1
  12. |
  13. 3 | fn main() {
  14. | ^^^^^^^^^ cannot return without recurring
  15. 4 | println!("{:?}", {
  16. 5 | main() // Dodo
  17. | ------ recursive call site
  18. |
  19. = note: #[warn(unconditional_recursion)] on by default
  20. = help: a `loop` may express intention better if this is on purpose
  21.  
  22. Finished dev [unoptimized + debuginfo] target(s) in 0.49 secs
  23. Running `target/debug/playground`
  24.  
  25. thread 'main' has overflowed its stack
  26. fatal runtime error: stack overflow
  27. timeout: the monitored command dumped core
  28. /root/entrypoint.sh: line 7: 5 Aborted timeout --signal=KILL ${timeout} "$@"
  29.  
  30. */
  31.  
  32. /* ~~~~=== stdout ===~~~~
  33.  
  34. */
Add Comment
Please, Sign In to add comment