1 error[E0277]: the trait bound `&u32: Foo` is not satisfied
2 --> $DIR/issue-60218.rs:18:27
4 LL | trigger_error(vec![], |x: &u32| x)
5 | ------------- ^^^^^^^^^^^ the trait `Foo` is not implemented for `&u32`
7 | required by a bound introduced by this call
9 note: required by a bound in `trigger_error`
10 --> $DIR/issue-60218.rs:13:72
12 LL | pub fn trigger_error<I, F>(iterable: I, functor: F)
13 | ------------- required by a bound in this
15 LL | for<'t> <Map<<&'t I as IntoIterator>::IntoIter, F> as Iterator>::Item: Foo,
16 | ^^^ required by this bound in `trigger_error`
18 error: aborting due to previous error
20 For more information about this error, try `rustc --explain E0277`.