2015-10-09 15:42:46 -05:00
|
|
|
struct A;
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
let a = A;
|
|
|
|
|
2015-10-11 17:25:50 -05:00
|
|
|
a + a; //~ ERROR binary operation `+` cannot be applied to type `A`
|
2015-10-10 06:03:18 -05:00
|
|
|
|
|
|
|
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`
|
2015-10-09 15:42:46 -05:00
|
|
|
|
2015-10-10 06:03:18 -05:00
|
|
|
a < a; //~ ERROR binary operation `<` cannot be applied to type `A`
|
2015-10-09 15:42:46 -05:00
|
|
|
|
2015-10-10 06:03:18 -05:00
|
|
|
a <= a; //~ ERROR binary operation `<=` cannot be applied to type `A`
|
2015-10-09 15:42:46 -05:00
|
|
|
|
2015-10-10 06:03:18 -05:00
|
|
|
a > a; //~ ERROR binary operation `>` cannot be applied to type `A`
|
2015-10-09 15:42:46 -05:00
|
|
|
|
2015-10-10 06:03:18 -05:00
|
|
|
a >= a; //~ ERROR binary operation `>=` cannot be applied to type `A`
|
2015-10-09 15:42:46 -05:00
|
|
|
}
|