fork/rust

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

borsAuto merge of #71365 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum4fb7144ed15

1.43.0
720 B19 linesraw
1error[E0369]: cannot add `std::boxed::Box<isize>` to `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
9error[E0369]: cannot add `std::boxed::Box<isize>` to `std::boxed::Box<isize>`
10  --> $DIR/autoderef-full-lval.rs:21:33
11   |
12LL |     let answer: isize = forty.a + two.a;
13   |                         ------- ^ ----- std::boxed::Box<isize>
14   |                         |
15   |                         std::boxed::Box<isize>
16
17error: aborting due to 2 previous errors
18
19For more information about this error, try `rustc --explain E0369`.