]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-60218.stderr
Auto merge of #78066 - bugadani:wat, r=jonas-schievink
[rust.git] / src / test / ui / issues / issue-60218.stderr
1 error[E0277]: the trait bound `for<'t> <Map<<&'t _ as IntoIterator>::IntoIter, _> as Iterator>::Item: Foo` is not satisfied
2   --> $DIR/issue-60218.rs:18:5
3    |
4 LL | pub fn trigger_error<I, F>(iterable: I, functor: F)
5    |        ------------- required by a bound in this
6 ...
7 LL | for<'t> <Map<<&'t I as IntoIterator>::IntoIter, F> as Iterator>::Item: Foo,
8    |                                                                        --- required by this bound in `trigger_error`
9 ...
10 LL |     trigger_error(vec![], |x: &u32| x)
11    |     ^^^^^^^^^^^^^ the trait `for<'t> Foo` is not implemented for `<Map<<&'t _ as IntoIterator>::IntoIter, _> as Iterator>::Item`
12
13 error: aborting due to previous error
14
15 For more information about this error, try `rustc --explain E0277`.