Skip to content

ICE: debug assertions: E0191 overlapping spans #115019

Closed
@matthiaskrgr

Description

@matthiaskrgr

Code

pub struct Flatten<I> {
    inner: <IntoIterator<Item: IntoIterator<Item: >>::IntoIterator as Item>::core,
}

Meta

rustc --version --verbose:

6ef7d16be0fb9d6ecf300c27990f4bff49d22d46

Error output

error[E0191]: the value of the associated types `IntoIter` (from trait `IntoIterator`), `IntoIter` (from trait `IntoIterator`), `Item` (from trait `IntoIterator`), `Item` (from trait `IntoIterator`) must be specified
 --> 58279A35D0EC648B4ACA3DAFB71E174BF71401B6729EDFD500DDEF2950F94C0C.rs:2:13
  |
2 |     inner: <IntoIterator<Item: IntoIterator<Item: >>::IntoIterator as Item>::core,
  |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  |             |                  |
  |             |                  associated types `Item`, `IntoIter` must be specified
  |             associated types `Item`, `IntoIter` must be specified
  |
help: specify the associated types
  |
2 |     inner: <IntoIterator<Item: IntoIterator<Item: >, Item = Type, IntoIter = Type>IntoIterator<Item: , Item = Type, IntoIter = Type>>::IntoIterator as Item>::core,
  |             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

span

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-suggestion-diagnosticsArea: Suggestions generated by the compiler applied by `cargo fix`C-bugCategory: This is a bug.I-ICEIssue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.requires-debug-assertionsThis issue requires a build of rustc or tooling with debug-assertions in some way

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions