blob: b330e4be051cce8ed7d09996e3e14fa7e9a97008 [file] [log] [blame]
// { dg-do compile { target c++2a } }
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;
}