Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

when there are 3 or more return statements in the loop #100338

Merged
merged 1 commit into from
Aug 16, 2022

Commits on Aug 15, 2022

  1. when there are 3 or more return statements in the loop

    emit the first 3 errors and duplicated diagnostic information
    using take of iterator for the first third return
    	modified:   compiler/rustc_typeck/src/check/coercion.rs
    	new file:   src/test/ui/typeck/issue-100285.rs
    	new file:   src/test/ui/typeck/issue-100285.stderr
    Yiming Lei committed Aug 15, 2022
    Configuration menu
    Copy the full SHA
    0471e27 View commit details
    Browse the repository at this point in the history