Skip to content

Duplicated error messages for static initializers #51970

Closed
@alexreg

Description

@alexreg

The error message could not evaluate static initializer is oddly reported twice for some static initializers (see tests src/test/compile-fail/issue-14227.rs and src/test/compile-fail/issue-28324.rs, for example).

This was discovered in #51110, and the suspected cause is a change @oli-obk recently made to error reporting.

CC @oli-obk @eddyb

Metadata

Metadata

Assignees

Labels

A-diagnosticsArea: Messages for errors, warnings, and lints

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions