blob: 114473f3acfec12e6f94c8917686abe49dca03a3 [file] [log] [blame]
struct A;
fn main() {
let a = A;
a + a; //~ ERROR binary operation `+` cannot be applied to type `A`
a - a; //~ ERROR binary operation `-` cannot be applied to type `A`
a * a; //~ ERROR binary operation `*` cannot be applied to type `A`
a / a; //~ ERROR binary operation `/` cannot be applied to type `A`
a % a; //~ ERROR binary operation `%` cannot be applied to type `A`
a & a; //~ ERROR binary operation `&` cannot be applied to type `A`
a | a; //~ ERROR binary operation `|` cannot be applied to type `A`
a << a; //~ ERROR binary operation `<<` cannot be applied to type `A`
a >> a; //~ ERROR binary operation `>>` cannot be applied to type `A`
a == a; //~ ERROR binary operation `==` cannot be applied to type `A`
a != a; //~ ERROR binary operation `!=` cannot be applied to type `A`
a < a; //~ ERROR binary operation `<` cannot be applied to type `A`
a <= a; //~ ERROR binary operation `<=` cannot be applied to type `A`
a > a; //~ ERROR binary operation `>` cannot be applied to type `A`
a >= a; //~ ERROR binary operation `>=` cannot be applied to type `A`
}