// PR c++/103706 // { dg-do compile { target c++20 } } template concept C = __is_same(U, int); template void f() { []() -> C auto { C auto x = T(); // { dg-error "constraints" } return T(); // { dg-error "constraints" } }(); } template void f(); // { dg-bogus "" } template void f(); // { dg-message "required from here" }