You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
error: expected one of `)`, `,`, `@`, or `|`, found `.`
--> src\main.rs:33:36
|
33 | if let WPARAM(VK_ESCAPE.0 as usize) = wparam {
| ^
| |
| expected one of `)`, `,`, `@`, or `|`
| help: missing `,`
error: expected identifier, found keyword `as`
--> src\main.rs:33:39
|
33 | if let WPARAM(VK_ESCAPE.0 as usize) = wparam {
| ^^ expected identifier, found keyword
error: expected one of `)`, `,`, `...`, `..=`, `..`, or `|`, found keyword `as`
--> src\main.rs:33:39
|
33 | if let WPARAM(VK_ESCAPE.0 as usize) = wparam {
| -^^ expected one of `)`, `,`, `...`, `..=`, `..`, or `|`
| |
| help: missing `,`
error: expected one of `)`, `,`, `@`, or `|`, found `usize`
--> src\main.rs:33:42
|
33 | if let WPARAM(VK_ESCAPE.0 as usize) = wparam {
| -^^^^^ expected one of `)`, `,`, `@`, or `|`
| |
| help: missing `,`
warning: unused import: `h`
--> src\main.rs:2:135
|
2 | use windows::{Win32::{System::LibraryLoader::GetModuleHandleW, UI::WindowsAndMessaging::{WNDCLASSEXW, DefWindowProcW}}, core::PCWSTR, h};
| ^
|
= note: `#[warn(unused_imports)]` on by default
warning: unreachable expression
--> src\main.rs:18:21
|
17 | cbClsExtra: todo!(),
| ------- any code following this expression is unreachable
18 | cbWndExtra: todo!(),
| ^^^^^^^ unreachable expression
|
= note: `#[warn(unreachable_code)]` on by default
= note: this warning originates in the macro `todo` (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0023]: this pattern has 4 fields, but the corresponding tuple struct has 1 field
--> src\main.rs:33:27
|
33 | if let WPARAM(VK_ESCAPE.0 as usize) = wparam {
| ^^^^^^^^^ ^ ^^ ^^^^^ expected 1 field, found 4
|
::: C:\Users\zzwxh\.cargo\registry\src\mirrors.ustc.edu.cn-61ef6e0cd06fb9b8\windows-0.43.0\src\Windows\Win32\Foundation\mod.rs:21158:19
|
21158 | pub struct WPARAM(pub usize);
| --------- tuple struct has 1 field
For more information about this error, try `rustc --explain E0023`.
warning: `learn_dx11` (bin "learn_dx11") generated 2 warnings
error: could not compile `learn_dx11` due to 5 previous errors; 2 warnings emitted
I tried this code:
I expected to see this happen: explanation
Instead, this happened: explanation
Meta
rustc --version --verbose
:Backtrace
The text was updated successfully, but these errors were encountered: