]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-60218.stderr
point at private fields in struct literal
[rust.git] / src / test / ui / issues / issue-60218.stderr
1 error[E0277]: the trait bound `&u32: Foo` is not satisfied
2   --> $DIR/issue-60218.rs:18:27
3    |
4 LL |     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    |
9 note: required by a bound in `trigger_error`
10   --> $DIR/issue-60218.rs:13:72
11    |
12 LL | pub fn trigger_error<I, F>(iterable: I, functor: F)
13    |        ------------- required by a bound in this
14 ...
15 LL | for<'t> <Map<<&'t I as IntoIterator>::IntoIter, F> as Iterator>::Item: Foo,
16    |                                                                        ^^^ required by this bound in `trigger_error`
17
18 error: aborting due to previous error
19
20 For more information about this error, try `rustc --explain E0277`.