Skip to content
This repository has been archived by the owner on May 23, 2024. It is now read-only.

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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants