rust/tests/ui/binop/binop-typeck.rs

9 lines
129 B
Rust

// issue #500
fn main() {
let x = true;
let y = 1;
let z = x + y;
//~^ ERROR cannot add `{integer}` to `bool`
}