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