fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #69854 - pietroalbini:stable-next, r=Centrilb8cedc00407

1.42.0
806 B15 linesraw
1error[E0277]: the trait bound `for<'t> <std::iter::Map<<&'t _ as std::iter::IntoIterator>::IntoIter, _> as std::iter::Iterator>::Item: Foo` is not satisfied
2  --> $DIR/issue-60218.rs:18:5
3   |
4LL | pub fn trigger_error<I, F>(iterable: I, functor: F)
5   |        -------------
6...
7LL | for<'t> <Map<<&'t I as IntoIterator>::IntoIter, F> as Iterator>::Item: Foo,
8   |                                                                        --- required by this bound in `trigger_error`
9...
10LL |     trigger_error(vec![], |x: &u32| x)
11   |     ^^^^^^^^^^^^^ the trait `for<'t> Foo` is not implemented for `<std::iter::Map<<&'t _ as std::iter::IntoIterator>::IntoIter, _> as std::iter::Iterator>::Item`
12
13error: aborting due to previous error
14
15For more information about this error, try `rustc --explain E0277`.