fork/rust

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

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
939 B25 linesraw
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`.