rust/tests/ui/impl-trait/issue-35668.stderr

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

17 lines
596 B
Plaintext
Raw Normal View History

error[E0369]: cannot multiply `&T` by `&T`
--> $DIR/issue-35668.rs:2:23
2018-07-15 16:11:54 -05:00
|
LL | a.iter().map(|a| a*a)
| -^- &T
| |
| &T
|
2022-06-05 19:37:45 -05:00
help: consider introducing a `where` clause, but there might be an alternative better way to express this requirement
|
LL | fn func<'a, T>(a: &'a [T]) -> impl Iterator<Item=&'a T> where &T: Mul<&T> {
| +++++++++++++++++
2018-07-15 16:11:54 -05:00
error: aborting due to previous error
For more information about this error, try `rustc --explain E0369`.