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

ices/83056.rs: fixed with errors #1709

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

github-actions[bot]
Copy link
Contributor

Issue: rust-lang/rust#83056

struct WSAPROTOCOLCHAIN {
    ChainEntries: [DWORD; SetFileAttributesW as usize],
}
extern "C" {
    fn SetFileAttributesW() -> BOOL;
}
=== stdout ===
=== stderr ===
error[E0412]: cannot find type `DWORD` in this scope
 --> /home/runner/work/glacier/glacier/ices/83056.rs:2:20
  |
2 |     ChainEntries: [DWORD; SetFileAttributesW as usize],
  |                    ^^^^^ not found in this scope

error[E0412]: cannot find type `BOOL` in this scope
 --> /home/runner/work/glacier/glacier/ices/83056.rs:5:32
  |
5 |     fn SetFileAttributesW() -> BOOL;
  |                                ^^^^ help: a builtin type with a similar name exists: `bool`

error[E0601]: `main` function not found in crate `83056`
 --> /home/runner/work/glacier/glacier/ices/83056.rs:6:2
  |
6 | }
  |  ^ consider adding a `main` function to `/home/runner/work/glacier/glacier/ices/83056.rs`

error: aborting due to 3 previous errors

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

=== stdout ===
=== stderr ===
error[E0412]: cannot find type `DWORD` in this scope
 --> /home/runner/work/glacier/glacier/ices/83056.rs:2:20
  |
2 |     ChainEntries: [DWORD; SetFileAttributesW as usize],
  |                    ^^^^^ not found in this scope

error[E0412]: cannot find type `BOOL` in this scope
 --> /home/runner/work/glacier/glacier/ices/83056.rs:5:32
  |
5 |     fn SetFileAttributesW() -> BOOL;
  |                                ^^^^ help: a builtin type with a similar name exists: `bool`

error[E0601]: `main` function not found in crate `83056`
 --> /home/runner/work/glacier/glacier/ices/83056.rs:6:2
  |
6 | }
  |  ^ consider adding a `main` function to `/home/runner/work/glacier/glacier/ices/83056.rs`

error: aborting due to 3 previous errors

Some errors have detailed explanations: E0412, E0601.
For more information about an error, try `rustc --explain E0412`.
==============
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.

None yet

1 participant