E3700#
Compiler diagnostic name: extra_ast_lint_warning.
The parser found a syntax pattern that has a dedicated lint suggestion.
This diagnostic is used for AST-level lints that are reported as compiler errors. One common case is multiplying a string literal by a number.
Erroneous example#
///|
pub fn repeated() -> String {
"ha" * 3
}
Suggestion#
Use the suggested API directly.
///|
pub fn repeated() -> String {
"ha".repeat(3)
}