diff options
| author | jsirs <44773712+jsirs@users.noreply.github.com> | 2018-11-05 15:57:07 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-11-05 15:57:07 +0200 |
| commit | 87c22f2b141018d9283d3956468c43106d8765aa (patch) | |
| tree | f51239b9d08a2c2eed1b84ccde44ed29edcca891 /src | |
| parent | 9fb2e0618e3a718ae12cd45b5ee39f9076ff3e79 (diff) | |
| download | rust-87c22f2b141018d9283d3956468c43106d8765aa.tar.gz rust-87c22f2b141018d9283d3956468c43106d8765aa.zip | |
add test for i32, fix incorrect location
Diffstat (limited to 'src')
| -rw-r--r-- | src/test/ui/issues/issue-31076.stderr | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/src/test/ui/issues/issue-31076.stderr b/src/test/ui/issues/issue-31076.stderr index a667034bd8c..3a13f02d9f4 100644 --- a/src/test/ui/issues/issue-31076.stderr +++ b/src/test/ui/issues/issue-31076.stderr @@ -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`. |
