2023-03-11 17:16:46 -06:00
|
|
|
// check-pass
|
2023-12-14 06:11:28 -06:00
|
|
|
// compile-flags: -Znext-solver
|
2023-03-11 17:16:46 -06:00
|
|
|
// Issue 94358
|
|
|
|
|
|
|
|
fn foo<C>(_: C)
|
|
|
|
where
|
|
|
|
for <'a> &'a C: IntoIterator,
|
|
|
|
for <'a> <&'a C as IntoIterator>::IntoIter: ExactSizeIterator,
|
|
|
|
{}
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
foo::<_>(vec![true, false]);
|
|
|
|
}
|