Skip to content
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

ices/83505.rs: fixed with errors #841

Merged
merged 1 commit into from Jun 21, 2021
Merged

ices/83505.rs: fixed with errors #841

merged 1 commit into from Jun 21, 2021

Conversation

github-actions[bot]
Copy link
Contributor

Issue: rust-lang/rust#83505

#[repr(simd)]
enum Es {}
static CLs: Es;
=== stdout ===
=== stderr ===
error: free static item without body
 --> /home/runner/work/glacier/glacier/ices/83505.rs:3:1
  |
3 | static CLs: Es;
  | ^^^^^^^^^^^^^^-
  |               |
  |               help: provide a definition for the static: `= <expr>;`

error[E0601]: `main` function not found in crate `83505`
 --> /home/runner/work/glacier/glacier/ices/83505.rs:1:1
  |
1 | / #[repr(simd)]
2 | | enum Es {}
3 | | static CLs: Es;
  | |_______________^ consider adding a `main` function to `/home/runner/work/glacier/glacier/ices/83505.rs`

error[E0517]: attribute should be applied to a struct
 --> /home/runner/work/glacier/glacier/ices/83505.rs:1:8
  |
1 | #[repr(simd)]
  |        ^^^^
2 | enum Es {}
  | ---------- not a struct

error[E0084]: unsupported representation for zero-variant enum
 --> /home/runner/work/glacier/glacier/ices/83505.rs:1:1
  |
1 | #[repr(simd)]
  | ^^^^^^^^^^^^^
2 | enum Es {}
  | ---------- zero-variant enum

error: aborting due to 4 previous errors

Some errors have detailed explanations: E0084, E0517, E0601.
For more information about an error, try `rustc --explain E0084`.
==============

=== stdout ===
=== stderr ===
error: free static item without body
 --> /home/runner/work/glacier/glacier/ices/83505.rs:3:1
  |
3 | static CLs: Es;
  | ^^^^^^^^^^^^^^-
  |               |
  |               help: provide a definition for the static: `= <expr>;`

error[E0601]: `main` function not found in crate `83505`
 --> /home/runner/work/glacier/glacier/ices/83505.rs:1:1
  |
1 | / #[repr(simd)]
2 | | enum Es {}
3 | | static CLs: Es;
  | |_______________^ consider adding a `main` function to `/home/runner/work/glacier/glacier/ices/83505.rs`

error[E0517]: attribute should be applied to a struct
 --> /home/runner/work/glacier/glacier/ices/83505.rs:1:8
  |
1 | #[repr(simd)]
  |        ^^^^
2 | enum Es {}
  | ---------- not a struct

error[E0084]: unsupported representation for zero-variant enum
 --> /home/runner/work/glacier/glacier/ices/83505.rs:1:1
  |
1 | #[repr(simd)]
  | ^^^^^^^^^^^^^
2 | enum Es {}
  | ---------- zero-variant enum

error: aborting due to 4 previous errors

Some errors have detailed explanations: E0084, E0517, E0601.
For more information about an error, try `rustc --explain E0084`.
==============
@JohnTitor JohnTitor merged commit c39689c into master Jun 21, 2021
@JohnTitor JohnTitor deleted the autofix/ices/83505.rs branch June 21, 2021 02:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants