rust/src/test/compile-fail/binop-logic-int.rs
Brian Anderson cfaa0f4b91 Fail typechecking for bad binop/type combinations
Includes assignment operations. Add regression tests for lots of less useful,
less used or unexpected combinations, as well as a selection of compile-fail
tests. Closes #500 (again!)
2011-06-25 19:42:59 -07:00

6 lines
101 B
Rust

// xfail-stage0
// error-pattern:&& cannot be applied to type `int`
fn main() {
auto x = 1 && 2;
}