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
598 B
Plaintext
Raw Normal View History

error[E0369]: cannot multiply `&T` by `&T`
--> $DIR/issue-35668.rs:2:23
2018-07-15 21:11:54 +00:00
|
LL | a.iter().map(|a| a*a)
| -^- &T
| |
| &T
|
2022-06-06 00:37:45 +00: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 21:11:54 +00:00
error: aborting due to 1 previous error
2018-07-15 21:11:54 +00:00
For more information about this error, try `rustc --explain E0369`.