blob: b2a6a796ea7cfbd4a9645dd443aa6ac1b1836701 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
// { dg-do compile { target c++20 } }
template<typename T>
concept Fooable = requires(T t) { foo(t); };
template<Fooable T>
void foo(T t) { }
void test()
{
foo(0); // { dg-error "no match" }
}
|