2 // { dg-options "-std=c++17 -fconcepts" }
5 concept bool HasType = requires { typename T::type; };
12 struct has_type { using type = void; };
15 trait<has_type>::type foo() {}
17 // constrained version here. Type "has_type" would fail this
18 // constraint so this partial specialization would not have been