blob: 8d7cb89f3f5905f91af8f321e02a1868c762f509 [file] [log] [blame]
// { dg-do compile { target c++20 } }
template<class> constexpr bool is_int = false;
template<> constexpr bool is_int<int> = true;
template <class T>
concept Int = is_int<T>;
int main() {
auto x = []<Int T>(T t) { return 42; };
auto y = x(42);
auto z = x(""); // { dg-error "no match" }
return z;
}