1// RUN: %clang_cc1 -std=c++20 %s -fsyntax-only -verify
2export module M;
3export { // expected-note {{export block begins here}}
4 export int foo() { return 43; } // expected-error {{export declaration appears within another export declaration}}
5}
6