Home | History | Annotate | Download | only in test

Lines Matching refs:use

4 // Use of this source code is governed by a BSD-style
12 func use(bool) {}
38 use(c1 == c2) // ERROR "invalid operation|incompatible"
39 use(c2 == c1) // ERROR "invalid operation|incompatible"
40 use(c1 == c3)
41 use(c2 == c2)
42 use(c3 == c1)
43 use(c3 == c2)
50 use(p1 == p2) // ERROR "invalid operation|incompatible"
51 use(p2 == p1) // ERROR "invalid operation|incompatible"
52 use(p1 == p3)
53 use(p2 == p2)
54 use(p3 == p1)
55 use(p3 == p2)
61 use(a1 == a1)
62 use(a2 == a2) // ERROR "invalid operation|invalid comparison"
63 use(a3 == a3) // ERROR "invalid operation|invalid comparison"
66 use(t3 == t3) // ERROR "struct|expected"
67 use(t4 == t4) // ERROR "cannot be compared|non-comparable"
73 use(x == x) // ERROR "slice can only be compared to nil"
74 use(f == f) // ERROR "func can only be compared to nil"
75 use(m == m) // ERROR "map can only be compared to nil"
80 use(i == x) // ERROR "invalid operation"
81 use(x == i) // ERROR "invalid operation"
82 use(i == f) // ERROR "invalid operation"
83 use(f == i) // ERROR "invalid operation"
84 use(i == m) // ERROR "invalid operation"
85 use(m == i) // ERROR "invalid operation"