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