2020-10-18 02:59:51 +00:00
|
|
|
error[E0369]: cannot multiply `Thing` by `{integer}`
|
2019-03-27 17:13:09 +00:00
|
|
|
--> $DIR/issue-3820.rs:14:15
|
2018-07-15 21:11:54 +00:00
|
|
|
|
|
2019-03-09 12:03:44 +00:00
|
|
|
LL | let w = u * 3;
|
2019-03-27 17:13:09 +00:00
|
|
|
| - ^ - {integer}
|
|
|
|
| |
|
|
|
|
| Thing
|
2018-07-15 21:11:54 +00:00
|
|
|
|
|
2023-04-27 00:57:13 +00:00
|
|
|
note: an implementation of `Mul<{integer}>` might be missing for `Thing`
|
2021-09-28 14:48:54 +00:00
|
|
|
--> $DIR/issue-3820.rs:1:1
|
|
|
|
|
|
|
|
|
LL | struct Thing {
|
2023-04-27 00:57:13 +00:00
|
|
|
| ^^^^^^^^^^^^ must implement `Mul<{integer}>`
|
2022-12-12 11:55:46 +00:00
|
|
|
note: the trait `Mul` must be implemented
|
2021-09-28 14:48:54 +00:00
|
|
|
--> $SRC_DIR/core/src/ops/arith.rs:LL:COL
|
2018-07-15 21:11:54 +00:00
|
|
|
|
2023-11-21 15:44:16 +00:00
|
|
|
error: aborting due to 1 previous error
|
2018-07-15 21:11:54 +00:00
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0369`.
|