1
Fork 0

update test to include concrete type (i32)

This commit is contained in:
jsirs 2018-11-05 15:54:10 +02:00 committed by GitHub
parent 4a08333c4d
commit 9fb2e0618e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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`
}