fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0277]: the trait bound `&u32: Foo` is not satisfied 2 --> $DIR/issue-60218.rs:18:19 3 | 4LL | trigger_error(vec![], |x: &u32| x) 5 | ------------- ^^^^^^ the trait `Foo` is not implemented for `&u32` 6 | | 7 | required by a bound introduced by this call 8 | 9help: this trait has no implementations, consider adding one 10 --> $DIR/issue-60218.rs:7:1 11 | 12LL | pub trait Foo {} 13 | ^^^^^^^^^^^^^ 14note: required by a bound in `trigger_error` 15 --> $DIR/issue-60218.rs:13:72 16 | 17LL | pub fn trigger_error<I, F>(iterable: I, functor: F) 18 | ------------- required by a bound in this function 19... 20LL | for<'t> <Map<<&'t I as IntoIterator>::IntoIter, F> as Iterator>::Item: Foo, 21 | ^^^ required by this bound in `trigger_error` 22 23error: aborting due to previous error 24 25For more information about this error, try `rustc --explain E0277`.