L1340 - Tuple Record Cannot Be Exported
Error
-module(main).
-record(tup, {a}).
-export_record([tup]).
%% ^^^ error: tuple records cannot be exported; only native records can
Explanation
The error occurs when a classic tuple record is listed in an
-export_record attribute.
Only native records (EEP-79) can be exported and used from other modules; tuple
records are local to the module (or header) that defines them. To fix the error,
either make the record a native record (-record(#tup {a}).) or remove it from
the export list.