1// PR c++/30535
2// { dg-prune-output "note" }
3
4struct A {};
5
6template<A, typename T> int operator-(A, T); // { dg-error "not a valid type" }
7
8int i = A() - 0; // { dg-error "no match" }
9