]> git.lizzy.rs Git - rust.git/blob - src/test/ui/autoderef-full-lval.stderr
Auto merge of #54720 - davidtwco:issue-51191, r=nikomatsakis
[rust.git] / src / test / ui / autoderef-full-lval.stderr
1 error[E0369]: binary operation `+` cannot be applied to type `std::boxed::Box<isize>`
2   --> $DIR/autoderef-full-lval.rs:25:20
3    |
4 LL |     let z: isize = a.x + b.y;
5    |                    ^^^^^^^^^
6    |
7    = note: an implementation of `std::ops::Add` might be missing for `std::boxed::Box<isize>`
8
9 error[E0369]: binary operation `+` cannot be applied to type `std::boxed::Box<isize>`
10   --> $DIR/autoderef-full-lval.rs:31:25
11    |
12 LL |     let answer: isize = forty.a + two.a;
13    |                         ^^^^^^^^^^^^^^^
14    |
15    = note: an implementation of `std::ops::Add` might be missing for `std::boxed::Box<isize>`
16
17 error: aborting due to 2 previous errors
18
19 For more information about this error, try `rustc --explain E0369`.