LYR-SEM0215
a name against the naming convention
A type, a type parameter or a variant not in PascalCase; a function, a field, a parameter, a local or a constant not in camelCase; a module with capitals in its name.
Explanation
Types, their parameters and an enum's variants are written in PascalCase (HttpClient, T, NotFound); functions, methods, fields, parameters, locals and constants in camelCase (readLine, int.max); modules in lower case. A leading _ is left out of the reading, and so is a _ between two digits (X86_64). An extern function keeps the name its library gives it.
Rename it as the note says; @Allow("naming") keeps a name another convention asks for.
Wrong
struct point_2d {
x: int,
}
fn main(): void {
let p = point_2d { x = 1 };
let _ = p.x;
}
Right
struct Point2d {
x: int,
}
fn main(): void {
let p = Point2d { x = 1 };
let _ = p.x;
}