We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
pub fn assert_equal<T: PartialEq<U> + std::fmt::Debug, U: std::fmt::Debug>( a: impl IntoIterator<Item = T>, b: impl IntoIterator<Item = U>, ) { let (a, b) = (a.into_iter(), b.into_iter()); let a_size: usize = a.size_hint().0; let b_size: usize = b.size_hint().0; let mut elems = Vec::with_capacity(usize::min(a_size, b_size)); for (a, b) in a.zip(b) { assert_eq!(a, b, "left != right, elems: {:?}", elems); elems.push(a); } }
cargo check: 0 errors, 0 warnings elems: Vec<{unknown}> open doc from usize::min, output: core::iter::traits::iterator::Iterator::min
elems: Vec<{unknown}>
usize::min
core::iter::traits::iterator::Iterator::min
rust-analyzer version: rust-analyzer 1.77.0-nightly (bf8716f1 2023-12-24)
rustc version: rustc 1.77.0-nightly (bf8716f1c 2023-12-24)
relevant settings: NONE
The text was updated successfully, but these errors were encountered:
Possibly duplicate of #15027
Sorry, something went wrong.
Possibly duplicate of #10653
It's a duplicate of #10653, yes (there might also be even older reports of this...)
No branches or pull requests
cargo check: 0 errors, 0 warnings
elems: Vec<{unknown}>
open doc from
usize::min
, output:core::iter::traits::iterator::Iterator::min
rust-analyzer version: rust-analyzer 1.77.0-nightly (bf8716f1 2023-12-24)
rustc version: rustc 1.77.0-nightly (bf8716f1c 2023-12-24)
relevant settings: NONE
The text was updated successfully, but these errors were encountered: