fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #66089 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum4560ea788cb

1.39.0
934 B23 linesraw
1error[E0369]: binary operation `+` cannot be applied to type `std::boxed::Box<isize>`
2  --> $DIR/autoderef-full-lval.rs:15:24
3   |
4LL |     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
11error[E0369]: binary operation `+` cannot be applied to type `std::boxed::Box<isize>`
12  --> $DIR/autoderef-full-lval.rs:21:33
13   |
14LL |     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
21error: aborting due to 2 previous errors
22
23For more information about this error, try `rustc --explain E0369`.