<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="resource r(b: int) { r(b); }
fn main() { r(0); }"><pre class="notranslate"><code class="notranslate">resource r(b: int) { r(b); }
fn main() { r(0); }
</code></pre></div>
<p dir="auto">Hits a fatal assertion rather than simply failing:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="rust: task 7fce71800000 ran out of stack
rust: fatal, 'on_rust_stack()' failed, ../src/rt/rust_task.cpp:570 "><pre class="notranslate"><code class="notranslate">rust: task 7fce71800000 ran out of stack
rust: fatal, 'on_rust_stack()' failed, ../src/rt/rust_task.cpp:570 
</code></pre></div>
<p dir="auto">What we are doing now leaks (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="7057358" data-permission-text="Title is private" data-url="https://github.com/rust-lang/rust/issues/3555" data-hovercard-type="issue" data-hovercard-url="/rust-lang/rust/issues/3555/hovercard" href="https://github.com/rust-lang/rust/issues/3555">#3555</a>) and I don't know how to fix it yet, so we should not pretend we can enforce stack size limits safely.</p>