]> git.lizzy.rs Git - rust.git/blob - tests/ui/autoderef-full-lval.stderr
Auto merge of #106520 - ehuss:update-mdbook, r=Mark-Simulacrum
[rust.git] / tests / ui / autoderef-full-lval.stderr
1 error[E0369]: cannot add `Box<isize>` to `Box<isize>`
2   --> $DIR/autoderef-full-lval.rs:15:24
3    |
4 LL |     let z: isize = a.x + b.y;
5    |                    --- ^ --- Box<isize>
6    |                    |
7    |                    Box<isize>
8
9 error[E0369]: cannot add `Box<isize>` to `Box<isize>`
10   --> $DIR/autoderef-full-lval.rs:21:33
11    |
12 LL |     let answer: isize = forty.a + two.a;
13    |                         ------- ^ ----- Box<isize>
14    |                         |
15    |                         Box<isize>
16
17 error: aborting due to 2 previous errors
18
19 For more information about this error, try `rustc --explain E0369`.