Skip to content

Recursive types fail to compile #1178

@jrmuizel

Description

@jrmuizel

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.
    1286acc (the latest snapshot on godbolt)

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

Status

Todo

Relationships

None yet

Development

No branches or pull requests

Issue actions