blob: dde4f745879e49e8070fdb7c757a8b7175191fae (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
//@ check-pass
//@ compile-flags: -Znext-solver
// Regression test for <https://github.com/rust-lang/trait-system-refactor-initiative/issues/214>.
fn execute<K, F, R>(q: F::Item) -> R
where
F: Iterator<Item = R>,
// Both of the below bounds should be considered for `.into()`, and then be combined
// into a single `R: Into<?0>` bound which can be inferred to `?0 = R`.
F::Item: Into<K>,
R: Into<String>,
{
q.into()
}
fn main() {}
|