]> git.lizzy.rs Git - rust.git/blob - src/test/ui/binop/issue-3820.stderr
:arrow_up: rust-analyzer
[rust.git] / src / test / ui / binop / issue-3820.stderr
1 error[E0369]: cannot multiply `Thing` by `{integer}`
2   --> $DIR/issue-3820.rs:14:15
3    |
4 LL |     let w = u * 3;
5    |             - ^ - {integer}
6    |             |
7    |             Thing
8    |
9 note: an implementation of `Mul<_>` might be missing for `Thing`
10   --> $DIR/issue-3820.rs:1:1
11    |
12 LL | struct Thing {
13    | ^^^^^^^^^^^^ must implement `Mul<_>`
14 note: the following trait must be implemented
15   --> $SRC_DIR/core/src/ops/arith.rs:LL:COL
16    |
17 LL | pub trait Mul<Rhs = Self> {
18    | ^^^^^^^^^^^^^^^^^^^^^^^^^
19
20 error: aborting due to previous error
21
22 For more information about this error, try `rustc --explain E0369`.