gccrs
gccrs copied to clipboard
Recursive types fail to compile
I tried this code:
pub struct Edge<'a> {
pub next: &'a Edge<'a>
}
I get <source>:2:19: error: failed to lookup HIR 15 for node 'Edge<'a>'
Meta
- What version of Rust GCC were you using, git sha if possible. 1286acc34e826039ebc8f09ad36dddc30f726283 (the latest snapshot on godbolt)
This is related to #1006 and #1073
@philberty you may have recently solved this
Nevermind
<source>:1:21: error: failed to resolve root segment
1 | struct Foo(&'static Foo);
| ^~~
ASM generation compiler returned: 1
<source>:1:21: error: failed to resolve root segment
1 | struct Foo(&'static Foo);
| ^~~
Execution build compiler returned: 1
https://godbolt.org/z/exTas3Eeo