blob: beb30d0e3506aa879c5c853b567020affdbf7d5e [file] [log] [blame]
// { dg-do compile { target c++20 } }
template<int I>
struct A {
enum E { e = I };
static void f() requires (e != 0);
};
int main() {
A<1>::f();
A<0>::f(); // { dg-error "no match" }
}