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