<p dir="auto"><strong>Guten Tag!</strong><br>
For my <a href="https://github.com/aeqwa/aeq">project</a> i used the 0.8 version of rust.<br>
After i started to work on a <a href="https://github.com/aeqwa/aeq/blob/master/parser.rs">parser module</a> for my project.<br>
rustc crashed at compile time and i decided to go and use the git version now i get an error message.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="task 'rustc' has overflowed its stack
[1]    2625 illegal hardware instruction (core dumped)  rustc main.rs"><pre class="notranslate"><code class="notranslate">task 'rustc' has overflowed its stack
[1]    2625 illegal hardware instruction (core dumped)  rustc main.rs
</code></pre></div>
<p dir="auto">My project compiles without</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="pub mod parser;"><pre class="notranslate"><code class="notranslate">pub mod parser;
</code></pre></div>
<p dir="auto">in my <a href="https://github.com/aeqwa/aeq/blob/master/main.rs">main.rs</a> perfectly.</p>
<p dir="auto">But i don't get an error message, what says what goes wrong.<br>
So I think thats an issue so thats reason you read that.</p>
<p dir="auto"><strong>Thanks for every help on the irc and for my problem!</strong></p>
<p dir="auto">Sebastian Pielawa</p>
<p dir="auto">The following program causes a stack overflow:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="struct S {
    element: Option&lt;S&gt;
}

fn main() {
}"><pre class="notranslate"><code class="notranslate">struct S {
    element: Option&lt;S&gt;
}

fn main() {
}
</code></pre></div>
<p dir="auto">There is a check that enums do not recurse in this way, but no such check for structs.  (Note, though, that there is a check that structrs are <em>instantiable</em>, which is slightly different)</p>