2020-09-02 07:40:56 +00:00
|
|
|
error[E0369]: cannot add `Box<isize>` to `Box<isize>`
|
2019-03-27 17:13:09 +00:00
|
|
|
--> $DIR/autoderef-full-lval.rs:15:24
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
|
|
|
LL | let z: isize = a.x + b.y;
|
2020-09-02 07:40:56 +00:00
|
|
|
| --- ^ --- Box<isize>
|
2019-03-27 17:13:09 +00:00
|
|
|
| |
|
2020-09-02 07:40:56 +00:00
|
|
|
| Box<isize>
|
2024-06-25 02:00:30 +00:00
|
|
|
|
|
|
|
|
note: the foreign item type `Box<isize>` doesn't implement `Add`
|
|
|
|
--> $SRC_DIR/alloc/src/boxed.rs:LL:COL
|
|
|
|
::: $SRC_DIR/alloc/src/boxed.rs:LL:COL
|
|
|
|
|
|
|
|
|
= note: not implement `Add`
|
2018-08-08 12:28:26 +00:00
|
|
|
|
2020-09-02 07:40:56 +00:00
|
|
|
error[E0369]: cannot add `Box<isize>` to `Box<isize>`
|
2019-03-27 17:13:09 +00:00
|
|
|
--> $DIR/autoderef-full-lval.rs:21:33
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
|
|
|
LL | let answer: isize = forty.a + two.a;
|
2020-09-02 07:40:56 +00:00
|
|
|
| ------- ^ ----- Box<isize>
|
2019-03-27 17:13:09 +00:00
|
|
|
| |
|
2020-09-02 07:40:56 +00:00
|
|
|
| Box<isize>
|
2024-06-25 02:00:30 +00:00
|
|
|
|
|
|
|
|
note: the foreign item type `Box<isize>` doesn't implement `Add`
|
|
|
|
--> $SRC_DIR/alloc/src/boxed.rs:LL:COL
|
|
|
|
::: $SRC_DIR/alloc/src/boxed.rs:LL:COL
|
|
|
|
|
|
|
|
|
= note: not implement `Add`
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
|
|
error: aborting due to 2 previous errors
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0369`.
|