]>
git.proxmox.com Git - rustc.git/blob - src/test/ui/binop/issue-28837.rs
6 a
+ a
; //~ ERROR cannot add `A` to `A`
8 a
- a
; //~ ERROR cannot subtract `A` from `A`
10 a
* a
; //~ ERROR cannot multiply `A` by `A`
12 a
/ a
; //~ ERROR cannot divide `A` by `A`
14 a
% a
; //~ ERROR cannot mod `A` by `A`
16 a
& a
; //~ ERROR no implementation for `A & A`
18 a
| a
; //~ ERROR no implementation for `A | A`
20 a
<< a
; //~ ERROR no implementation for `A << A`
22 a
>> a
; //~ ERROR no implementation for `A >> A`
24 a
== a
; //~ ERROR binary operation `==` cannot be applied to type `A`
26 a
!= a
; //~ ERROR binary operation `!=` cannot be applied to type `A`
28 a
< a
; //~ ERROR binary operation `<` cannot be applied to type `A`
30 a
<= a
; //~ ERROR binary operation `<=` cannot be applied to type `A`
32 a
> a
; //~ ERROR binary operation `>` cannot be applied to type `A`
34 a
>= a
; //~ ERROR binary operation `>=` cannot be applied to type `A`