Debian Codegraph @

gcc/testsuite/g++.dg/cpp2a/concepts-recursive-sat3.C

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