mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 23:34:48 +00:00
14 lines
242 B
Rust
14 lines
242 B
Rust
// check-pass
|
|
// compile-flags: -Ztrait-solver=next
|
|
// 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]);
|
|
}
|