/src/test/compile-fail/binop-logic-int.rs

http://github.com/jruderman/rust · Rust · 3 lines · 1 code · 1 blank · 1 comment · 1 complexity · 42130f7cbbbe7ed69045e262a3b9837e MD5 · raw file

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