1 // RUN: %clang_cc1 -std=c++20 -x c++ %s -verify -fsyntax-only
2 // expected-no-diagnostics
5 concept HasMemberBegin
= requires(T0 t
) { t
.begin(); };
8 template <HasMemberBegin T1
>
14 template <typename T2
>
15 concept Concept
= requires(T2 t
) { begin(t
); };
19 template <typename T3
>
21 Subrange
&getSubrange();
27 requires requires
{ begin(getSubrange()); };
32 struct Subrange
: View
<void> {};
33 static_assert(Concept
<Subrange
>);