Skip to content

Commit 87c22f2

Browse files
authored
add test for i32, fix incorrect location
1 parent 9fb2e06 commit 87c22f2

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

src/test/ui/issues/issue-31076.stderr

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,19 @@
11
error[E0369]: binary operation `+` cannot be applied to type `{integer}`
2-
--> $DIR/typeck-issue-31076-correct-trait-impl.rs:13:13
2+
--> $DIR/issue-31076.rs:13:13
33
|
44
LL | let x = 5 + 6;
55
| ^^^^^
66
|
77
= note: an implementation of `std::ops::Add` might be missing for `{integer}`
88

9-
error: aborting due to previous error
9+
error[E0369]: binary operation `+` cannot be applied to type `i32`
10+
--> $DIR/issue-31076.rs:15:13
11+
|
12+
LL | let y = 5i32 + 6i32;
13+
| ^^^^^^^^^^^
14+
|
15+
= note: an implementation of `std::ops::Add` might be missing for `i32`
16+
17+
error: aborting due to 2 previous errors
1018

1119
For more information about this error, try `rustc --explain E0369`.

0 commit comments

Comments
 (0)