L1342 - record_info/2 on a Native Record
Error
-module(main).
-export([f/0]).
-record(#point {x, y}).
f() -> record_info(size, point).
%% ^^^^^ error: record_info/2 is only supported for tuple records
Explanation
The error occurs when record_info/2 is used with a native record (EEP-79).
record_info(fields, Rec) and record_info(size, Rec) are compile-time
pseudo-functions that are only supported for tuple records. They are not
available for native records. To fix the error, avoid record_info/2 on native
records.