rust/src/test/ui/issues/issue-31076.stderr
LeSeulArtichaut 2e07892c7d Do not emit note suggesting to implement trait to foreign type
Update tests

Extend to other operations

Refractor check in a separate function

Fix more tests
2020-02-17 15:21:36 +01:00

20 lines
484 B
Plaintext

error[E0369]: cannot add `{integer}` to `{integer}`
--> $DIR/issue-31076.rs:13:15
|
LL | let x = 5 + 6;
| - ^ - {integer}
| |
| {integer}
error[E0369]: cannot add `i32` to `i32`
--> $DIR/issue-31076.rs:15:18
|
LL | let y = 5i32 + 6i32;
| ---- ^ ---- i32
| |
| i32
error: aborting due to 2 previous errors
For more information about this error, try `rustc --explain E0369`.