Skip to content

Error message for E0307 is weird #26485

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
tbu- opened this issue Jun 21, 2015 · 0 comments
Closed

Error message for E0307 is weird #26485

tbu- opened this issue Jun 21, 2015 · 0 comments
Labels
A-diagnostics Area: Messages for errors, warnings, and lints

Comments

@tbu-
Copy link
Contributor

tbu- commented Jun 21, 2015

a.rs:8:17: 8:38 error: expected constant integer for repeat count, but unsupported constant expr [E0307]
a.rs:8     let a = [0; mem::size_of::<i32>()];
                       ^~~~~~~~~~~~~~~~~~~~~
a.rs:8:17: 8:38 help: run `rustc --explain E0307` to see a detailed explanation
error: aborting due to previous error

The message "expected constant integer for repeat count, but unsupported constant expr" is a bit weird (ungrammatical?).

@sanxiyn sanxiyn added the A-diagnostics Area: Messages for errors, warnings, and lints label Jun 24, 2015
@bors bors closed this as completed in a067b45 Jul 29, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-diagnostics Area: Messages for errors, warnings, and lints
Projects
None yet
Development

No branches or pull requests

2 participants