Skip to content

Fixes #31076 #55694

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Nov 6, 2018
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
update test to include concrete type (i32)
  • Loading branch information
jsirs authored Nov 5, 2018
commit 9fb2e0618e3a718ae12cd45b5ee39f9076ff3e79
2 changes: 2 additions & 0 deletions src/test/ui/issues/issue-31076.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,6 @@ impl Add<i32> for i32 {}
fn main() {
let x = 5 + 6;
//~^ ERROR binary operation `+` cannot be applied to type `{integer}`
let y = 5i32 + 6i32;
//~^ ERROR binary operation `+` cannot be applied to type `i32`
}