glacier
glacier copied to clipboard
ices/83056.rs: fixed with errors
Issue: https://github.com/rust-lang/rust/issues/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`.
==============