Skip to content

ternary izip! from itertools makes rust-analyzer take the second type from the third value #14460

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

Closed
schuelermine opened this issue Mar 31, 2023 · 1 comment
Labels
C-bug Category: bug

Comments

@schuelermine
Copy link

Example code:

use itertools::izip;

pub struct A<const N: usize> {
    chunks: [u64; N],
}

impl<const N: usize> A<N> {
    pub fn foo(self, rhs: Self) {
        let mut chunks = [0; N];
        let mut iter = izip!(self.chunks, rhs.chunks, &mut chunks);
        let (_a, _b, _c) = iter.next().unwrap();
    }
}

Example screenshot:
image

rust-analyzer version: rust-analyzer version: 2023-03-27

rustc version: rustc 1.70.0-nightly (ec2f40c6b 2023-03-30)

relevant settings: None

@schuelermine schuelermine added the C-bug Category: bug label Mar 31, 2023
@Veykril
Copy link
Member

Veykril commented Apr 1, 2023

Duplicate of #11681

@Veykril Veykril marked this as a duplicate of #11681 Apr 1, 2023
@Veykril Veykril closed this as completed Apr 1, 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