Skip to content

Normalizes-to overflow with rigid alias with redundant bound #83

Closed
@compiler-errors

Description

@compiler-errors
pub fn choice<I>(iter: I) -> Option<I::Item>
where
    I: IntoIterator,
    I::IntoIter: Iterator,
{
    todo!()
}
error[E0275]: overflow evaluating the requirement `<I as IntoIterator>::Item normalizes-to _`
 --> <source>:1:30
  |
1 | pub fn choice<I>(iter: I) -> Option<I::Item>
  |                              ^^^^^^^^^^^^^^^
  |
  = help: consider increasing the recursion limit by adding a `#![recursion_limit = "256"]` attribute to your crate (`example`)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions