rust/tests/ui/operator-recovery/box-arithmetic-14915.stderr
Deadbeef 3c6ae00204 Make diagnostics clearer for binop-related errors in foreign crates
Fixes redundant language and bad grammar.
2025-10-18 01:20:25 +00:00

17 lines
540 B
Text

error[E0369]: cannot add `{integer}` to `Box<isize>`
--> $DIR/box-arithmetic-14915.rs:6:22
|
LL | println!("{}", x + 1);
| - ^ - {integer}
| |
| Box<isize>
|
note: `Box<isize>` does not implement `Add<{integer}>`
--> $SRC_DIR/alloc/src/boxed.rs:LL:COL
::: $SRC_DIR/alloc/src/boxed.rs:LL:COL
|
= note: `Box<isize>` is defined in another crate
error: aborting due to 1 previous error
For more information about this error, try `rustc --explain E0369`.