rust/tests/ui/traits/next-solver/lazy-nested-obligations-1.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

14 lines
238 B
Rust
Raw Normal View History

//@ check-pass
2023-12-14 12:11:28 +00:00
//@ compile-flags: -Znext-solver
// 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]);
}