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

Variable Type Derivation Bug #15063

Closed
A4-Tacks opened this issue Jun 16, 2023 · 1 comment
Closed

Variable Type Derivation Bug #15063

A4-Tacks opened this issue Jun 16, 2023 · 1 comment
Labels
C-bug Category: bug

Comments

@A4-Tacks
Copy link

A4-Tacks commented Jun 16, 2023

rust-analyzer version: rust-analyzer 1.70.0 (90c54180 2023-05-31) and rust-analyzer 1.72.0-nightly (114fb86c 2023-06-15)

rustc version: rustc 1.70.0 (90c541806 2023-05-31) and rustc 1.72.0-nightly (114fb86ca 2023-06-15)

relevant settings: NO_SETTINGS

fn _foo<I, I1>(source: I)
where I: IntoIterator<Item = char>,
      I1: IntoIterator<Item = usize>
{
    for _ch in source {
        // _ch: {unknown}
    }
}
fn _bar<I, I1>(source: I)
where I: IntoIterator<Item = char>,
{
    for _ch in source {
        // _ch: char
    }
}
fn _moo<I, I1>(source: I)
where I: IntoIterator<Item = char>,
      I1: IntoIterator<Item = usize>
{
    for _ch in source {
        let _: char = _ch;
        // _ch: char
    }
}
@A4-Tacks A4-Tacks added the C-bug Category: bug label Jun 16, 2023
@lowr
Copy link
Contributor

lowr commented Jun 16, 2023

Thanks for the report -- this is a duplicate of #10653 that needs to be solved in an upstream library: rust-lang/chalk#750. Closing as a duplicate.

@lowr lowr closed this as not planned Won't fix, can't repro, duplicate, stale Jun 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Category: bug
Projects
None yet
Development

No branches or pull requests

2 participants