summary refs log tree commit diff
path: root/src/test/ui/issues/issue-35668.stderr
blob: 600cacc23aef5d1f24a51fba65c278f40722c621 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
error[E0369]: cannot multiply `&T` to `&T`
  --> $DIR/issue-35668.rs:2:23
   |
LL |     a.iter().map(|a| a*a)
   |                      -^- &T
   |                      |
   |                      &T
   |
help: consider restricting type parameter `T`
   |
LL | fn func<'a, T: std::ops::Mul<Output = &T>>(a: &'a [T]) -> impl Iterator<Item=&'a T> {
   |              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error: aborting due to previous error

For more information about this error, try `rustc --explain E0369`.