1 2 3 4 5 6 7 8 9 10 11
// { dg-do compile { target c++20 } } template<typename T> concept Type = true; template<typename T> concept C = requires (T a) { { a.f() } -> Type; // OK { a.g() } -> const Type*; // { dg-error "not a plain type-constraint" } };