2 // { dg-options "-std=c++17 -fconcepts" }
6 template <template <class> class T, class U>
7 concept bool _Valid = requires { typename T<U>; };
10 using __t = typename T::type;
13 struct __has_type : std::false_type { };
16 requires _Valid<__t, T>
17 struct __has_type<T> : std::true_type { };
19 static_assert(!__has_type<int>(), "");