1 // { dg-options "-std=c++17 -fconcepts" }
8 struct Sequence : std::false_type { };
11 struct Predicate : std::false_type { };
13 template<typename Seq, typename Fn>
14 requires Sequence<Seq>{} and Predicate<Fn>{}
15 bool all(const Seq& seq, Fn fn) {
16 for(const auto& x : seq)
23 all(vector<int>{0, 2}, true); // { dg-error "not|bool" }