]> git.lizzy.rs Git - rust.git/commitdiff
add test for i32, fix incorrect location
authorjsirs <44773712+jsirs@users.noreply.github.com>
Mon, 5 Nov 2018 13:57:07 +0000 (15:57 +0200)
committerGitHub <noreply@github.com>
Mon, 5 Nov 2018 13:57:07 +0000 (15:57 +0200)
src/test/ui/issues/issue-31076.stderr

index a667034bd8ce1ab58eb7b062890ce8f340afd661..3a13f02d9f45f34fd72086513bdf56319ba7a578 100644 (file)
@@ -1,11 +1,19 @@
 error[E0369]: binary operation `+` cannot be applied to type `{integer}`
-  --> $DIR/typeck-issue-31076-correct-trait-impl.rs:13:13
+  --> $DIR/issue-31076.rs:13:13
    |
 LL |     let x = 5 + 6;
    |             ^^^^^
    |
    = note: an implementation of `std::ops::Add` might be missing for `{integer}`
 
-error: aborting due to previous error
+error[E0369]: binary operation `+` cannot be applied to type `i32`
+  --> $DIR/issue-31076.rs:15:13
+   |
+LL |     let y = 5i32 + 6i32;
+   |             ^^^^^^^^^^^
+   |
+   = note: an implementation of `std::ops::Add` might be missing for `i32`
+
+error: aborting due to 2 previous errors
 
 For more information about this error, try `rustc --explain E0369`.