// RUN: %clang_cc1 -std=c++20 -fsyntax-only -verify %s
// expected-error@+2 {{non-templated function cannot have a requires clause}}
void requires true;
auto bool
requires true; // OK
// expected-error@+4 {{trailing return type must appear before trailing requires clause}}
auto requires true
-> bool;
// expected-error@+2{{trailing requires clause can only be used when declaring a function}}
void
requires true;
// expected-error@+1{{trailing requires clause can only be used when declaring a function}}
void ;
// expected-error@+1{{expected expression}}
auto *p = new void
requires true;