2018-11-05 06:33:43 -06:00
|
|
|
error[E0369]: binary operation `+` cannot be applied to type `{integer}`
|
2019-03-27 12:13:09 -05:00
|
|
|
--> $DIR/issue-31076.rs:13:15
|
2018-11-05 06:33:43 -06:00
|
|
|
|
|
|
|
|
LL | let x = 5 + 6;
|
2019-03-27 12:13:09 -05:00
|
|
|
| - ^ - {integer}
|
|
|
|
| |
|
|
|
|
| {integer}
|
2018-11-05 06:33:43 -06:00
|
|
|
|
|
|
|
|
= note: an implementation of `std::ops::Add` might be missing for `{integer}`
|
|
|
|
|
2018-11-05 07:57:07 -06:00
|
|
|
error[E0369]: binary operation `+` cannot be applied to type `i32`
|
2019-03-27 12:13:09 -05:00
|
|
|
--> $DIR/issue-31076.rs:15:18
|
2018-11-05 07:57:07 -06:00
|
|
|
|
|
|
|
|
LL | let y = 5i32 + 6i32;
|
2019-03-27 12:13:09 -05:00
|
|
|
| ---- ^ ---- i32
|
|
|
|
| |
|
|
|
|
| i32
|
2018-11-05 07:57:07 -06:00
|
|
|
|
|
|
|
|
= note: an implementation of `std::ops::Add` might be missing for `i32`
|
|
|
|
|
|
|
|
error: aborting due to 2 previous errors
|
2018-11-05 06:33:43 -06:00
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0369`.
|