blob: 0848b4c559b3a79ad854cbf61114e800054a3a43 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
use std::fmt::Debug;
pub fn foo<I: Iterator>(mut iter: I, value: &I::Item)
where
I::Item: Eq + Debug,
{
debug_assert_eq!(iter.next(), Some(value));
//~^ ERROR mismatched types
}
fn main() {}
|