2020-10-17 21:59:51 -05:00
|
|
|
error[E0369]: cannot multiply `&T` by `&T`
|
2019-03-27 12:13:09 -05:00
|
|
|
--> $DIR/issue-35668.rs:2:23
|
2018-07-15 16:11:54 -05:00
|
|
|
|
|
|
|
|
LL | a.iter().map(|a| a*a)
|
2019-03-27 12:13:09 -05:00
|
|
|
| -^- &T
|
|
|
|
| |
|
|
|
|
| &T
|
2020-06-23 19:32:06 -05:00
|
|
|
|
|
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
|
2020-06-23 19:32:06 -05:00
|
|
|
|
|
2022-02-15 16:49:16 -06:00
|
|
|
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`.
|