blob: aee27bc0c98cefa77abc075a77c7c0a188f57b33 [file] [log] [blame]
// { dg-do compile { target c++20 } }
template<class From, class To>
concept convertible_to = requires(From (&f)(), void (&g)(To)) { g(f()); };
template<class T>
concept Addable =
requires(T x){
{x + x} -> convertible_to<T>;
};
int main(){
Addable auto t = 0;
}