summaryrefslogtreecommitdiffstats
path: root/src/test/ui/binop/issue-3820.stderr
blob: f21f890691120cdd4e50c07fda0f9324e52aa4d5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
error[E0369]: cannot multiply `Thing` by `{integer}`
  --> $DIR/issue-3820.rs:14:15
   |
LL |     let w = u * 3;
   |             - ^ - {integer}
   |             |
   |             Thing
   |
note: an implementation of `Mul<_>` might be missing for `Thing`
  --> $DIR/issue-3820.rs:1:1
   |
LL | struct Thing {
   | ^^^^^^^^^^^^ must implement `Mul<_>`
note: the following trait must be implemented
  --> $SRC_DIR/core/src/ops/arith.rs:LL:COL
   |
LL | pub trait Mul<Rhs = Self> {
   | ^^^^^^^^^^^^^^^^^^^^^^^^^

error: aborting due to previous error

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