2021-05-03 08:25:32 -05:00
|
|
|
error[E0277]: the trait bound `&u32: Foo` is not satisfied
|
2022-08-16 01:27:22 -05:00
|
|
|
--> $DIR/issue-60218.rs:18:19
|
2019-09-20 15:54:27 -05:00
|
|
|
|
|
2021-07-31 11:26:55 -05:00
|
|
|
LL | trigger_error(vec![], |x: &u32| x)
|
2022-08-16 01:27:22 -05:00
|
|
|
| ------------- ^^^^^^ the trait `Foo` is not implemented for `&u32`
|
2021-09-07 06:30:53 -05:00
|
|
|
| |
|
|
|
|
| required by a bound introduced by this call
|
2021-07-31 11:26:55 -05:00
|
|
|
|
|
2023-09-09 22:33:07 -05:00
|
|
|
help: this trait has no implementations, consider adding one
|
|
|
|
--> $DIR/issue-60218.rs:7:1
|
|
|
|
|
|
|
|
|
LL | pub trait Foo {}
|
|
|
|
| ^^^^^^^^^^^^^
|
2021-07-31 11:26:55 -05:00
|
|
|
note: required by a bound in `trigger_error`
|
|
|
|
--> $DIR/issue-60218.rs:13:72
|
|
|
|
|
|
2019-09-20 15:54:27 -05:00
|
|
|
LL | pub fn trigger_error<I, F>(iterable: I, functor: F)
|
2023-02-20 23:21:07 -06:00
|
|
|
| ------------- required by a bound in this function
|
2019-09-20 15:54:27 -05:00
|
|
|
...
|
|
|
|
LL | for<'t> <Map<<&'t I as IntoIterator>::IntoIter, F> as Iterator>::Item: Foo,
|
2021-07-31 11:26:55 -05:00
|
|
|
| ^^^ required by this bound in `trigger_error`
|
2019-09-20 15:54:27 -05:00
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0277`.
|