]> git.proxmox.com Git - rustc.git/blob - src/test/ui/binop/issue-3820.stderr
New upstream version 1.62.1+dfsg1
[rustc.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 LL | | /// The resulting type after applying the `*` operator.
19 LL | | #[stable(feature = "rust1", since = "1.0.0")]
20 LL | | type Output;
21 ... |
22 LL | | fn mul(self, rhs: Rhs) -> Self::Output;
23 LL | | }
24 | |_^
25
26 error: aborting due to previous error
27
28 For more information about this error, try `rustc --explain E0369`.