1 // RUN: %clang_cc1 -fsyntax-only -std=c++20 %s -verify 2 3 struct S { 4 void f(this auto &a); // expected-error {{explicit object parameters are incompatible with C++ standards before C++2b}} 5 }; 6 f()7void f() { 8 (void)[](this auto&a){}; // expected-error {{explicit object parameters are incompatible with C++ standards before C++2b}} 9 } 10