rust/tests/ui/issues/issue-60218.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

26 lines
939 B
Plaintext
Raw Normal View History

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
|
LL | trigger_error(vec![], |x: &u32| x)
2022-08-16 06:27:22 +00:00
| ------------- ^^^^^^ the trait `Foo` is not implemented for `&u32`
| |
| required by a bound introduced by this call
|
help: this trait has no implementations, consider adding one
--> $DIR/issue-60218.rs:7:1
|
LL | pub trait Foo {}
| ^^^^^^^^^^^^^
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,
| ^^^ required by this bound in `trigger_error`
2019-09-20 20:54:27 +00:00
error: aborting due to previous error
For more information about this error, try `rustc --explain E0277`.