module M; // #M
export int b2; // expected-error {{export declaration can only be used within a module purview}}
As Michael's suggestion in #148861 (comment), This should say "within the purview of a module interface" for this case, or just "within a module interface" to be less pedantic.