]> git.lizzy.rs Git - rust.git/blob - tests/ui/impl-trait/issue-35668.stderr
Rollup merge of #106427 - mejrs:translation_errors, r=davidtwco
[rust.git] / tests / ui / impl-trait / issue-35668.stderr
1 error[E0369]: cannot multiply `&T` by `&T`
2   --> $DIR/issue-35668.rs:2:23
3    |
4 LL |     a.iter().map(|a| a*a)
5    |                      -^- &T
6    |                      |
7    |                      &T
8    |
9 help: consider introducing a `where` clause, but there might be an alternative better way to express this requirement
10    |
11 LL | fn func<'a, T>(a: &'a [T]) -> impl Iterator<Item=&'a T> where &T: Mul<&T> {
12    |                                                         +++++++++++++++++
13
14 error: aborting due to previous error
15
16 For more information about this error, try `rustc --explain E0369`.