rust/src/test/ui/autoderef-full-lval.stderr

20 lines
732 B
Plaintext
Raw Normal View History

2018-08-08 07:28:26 -05:00
error[E0369]: binary operation `+` cannot be applied to type `std::boxed::Box<isize>`
2018-12-25 09:56:47 -06:00
--> $DIR/autoderef-full-lval.rs:15:20
2018-08-08 07:28:26 -05:00
|
LL | let z: isize = a.x + b.y;
| ^^^^^^^^^
|
= note: an implementation of `std::ops::Add` might be missing for `std::boxed::Box<isize>`
error[E0369]: binary operation `+` cannot be applied to type `std::boxed::Box<isize>`
2018-12-25 09:56:47 -06:00
--> $DIR/autoderef-full-lval.rs:21:25
2018-08-08 07:28:26 -05:00
|
LL | let answer: isize = forty.a + two.a;
| ^^^^^^^^^^^^^^^
|
= note: an implementation of `std::ops::Add` might be missing for `std::boxed::Box<isize>`
error: aborting due to 2 previous errors
For more information about this error, try `rustc --explain E0369`.