Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- fn main() {
- println!("{:?}", {
- main() // Dodo
- });
- }
- /* ~~~~=== stderr ===~~~~
- Compiling playground v0.0.1 (file:///playground)
- warning: function cannot return without recurring
- --> src/main.rs:3:1
- |
- 3 | fn main() {
- | ^^^^^^^^^ cannot return without recurring
- 4 | println!("{:?}", {
- 5 | main() // Dodo
- | ------ recursive call site
- |
- = note: #[warn(unconditional_recursion)] on by default
- = help: a `loop` may express intention better if this is on purpose
- Finished dev [unoptimized + debuginfo] target(s) in 0.49 secs
- Running `target/debug/playground`
- thread 'main' has overflowed its stack
- fatal runtime error: stack overflow
- timeout: the monitored command dumped core
- /root/entrypoint.sh: line 7: 5 Aborted timeout --signal=KILL ${timeout} "$@"
- */
- /* ~~~~=== stdout ===~~~~
- */
Add Comment
Please, Sign In to add comment