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