Skip to content

Type inference not correct on Loops with Break #4492

Description

@sanbox-irl

Hello!

image

The type of x should be usize, which Rustc sees and allows to compile without error.

Not the biggest deal, but just thought I'd add an issue

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-tytype system / type inference / traits / method resolutionE-medium

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions